[jQuery] Re: Superfish: post the license, please

2008-12-19 Thread Brian

Thank you.

On Dec 17, 2:19 am, Joel Birch  wrote:
> No problem. If you view that page again you should see this
> information added to the end of the plugin description. Hope this is
> sufficient. Thanks for the suggestion.
>
> JoelBirch.


[jQuery] Re: Split button plugins (?)

2008-12-19 Thread R. Rajesh Jeba Anbiah

On Dec 19, 6:55 pm, Dave Methvin  wrote:
> I haven't seen any myself. This page from YUI provides a good outline
> of the markup to use:
>
> http://developer.yahoo.com/yui/examples/button/btn_example08.html

   Thanks for your input.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Need help to decide on SWF/FLV/SIFR plugin - a bit unsure, for sure!

2008-12-19 Thread yvonney

Hi all!

[OBJECTIVE: need best solution to have flash (and perhaps likely .flv
as well) and also SIFR stuff work]

Hoping to have a plugin guru advise as to whether 2 plugins whould be
advised, or one, and which one(s) ???
Here's what I've thought.

1) There's a couple or a few flash/flv type JQery plugins, all very
cool one of them (or more) do SIFR as well.

2) I would like to AVOID using JW flash player and that other popular
one so I've thought that having flash SWFs and not FLVs might be
needed. Not sure. I DO need to have a play and stop button at least.
Would this mean I HAVE to custom create/encode EACH video to a SWF and
with player features? I guess so... AND, I'm using LINUX...
so...hmm. what would I use??

3) YES. I'm able to fumble around and try to answer all the questions
myself though it would take me at least hours and likey days. And even
then I'd probably make at least one decision wrongly. Could anyone
help on finding out the MOST elegant/flexible way of having SIFR and
SWF or FLV working with JQuery...?? (or standalone? as in using
SWFobject 2 ?)

- Should I use SWFobject or the one/two of the JQuery plugins?
- IS there a, well, ... REAL full open source player anymore that's
worth getting good at any more?
- If not I'd want to find some way to have SIFR and SWFs (and FLVs?)
play and stop on demand.
- For SIFR I'm confused still. Is it a good idea to use a PLUGIN that
does flash and sifr?

Basically I started out thinking geez. JW player and the other
one seem to not be for me any more...
I wonder if I can easily on linux take my videos (mpeg etc.) and
create flash SWFs or FLVs that don't need a player. Must have stop and
start feature though, and hopefully volume control. And of course, I'm
in love with my Linux box though not experienced with transcoding/
flash etc.um, yet! :--)


ANY help greatly much appreciated of course. Thing is, I KNOW there IS
a best way.

one plug? two plugs? which? flv or custom swf? and then... what to do
on linux?

much thanks goes here, for yur reading of this!

how cool is 2008
-




[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-19 Thread adeveloper

It appears to be happening because I have a table inside a row. When I
removed the table inside one of the cells, everything is fine.

I tried disabling the column with the table (sorter:false), but that
did not help. Is there a workaround (except completely removing the
inner table)?




On Dec 19, 7:47 pm, adeveloper  wrote:
> anybody?
>
> On Dec 19, 1:17 am, adeveloper  wrote:
>
> > The row coloring is done on client-side (withtablesorteritself). It
> > works on document load. However, after sorting, all rows become the
> > same color. Why is row coloring not preserved after sorting? What can
> > be the reason?
>
> > Here is a snippet:
> > -
> > 
> > 
> > 
> >         
> >                 Text
> >                 Text
> >         
> > 
> > 
> >         
> >                 Text
> >                 
> >                         Number
> >                                 Time
> >                 
> >                 
> >                   
> >                         
> >                                 
> >                         
> >                   
> >                 
> >         
> >         
> >               .
> >         
> > 
> > 
> > 
> > -
> > $(document).ready(function() {
> >     $("#tableID").tablesorter({
> >         headers: {
>
> >                 4: {
> >                            sorter: 'time'
> >                            }
>
> >                 },
> >                 widgets:['zebra'],
> >                 widgetZebra: {css: ["even","odd"]}
> >     });
>
> > });
>
> > -
> > .odd {
> > background-color: ...}
>
> > .even {
> > background-color: ...}
>
> > -
>
> > On Dec 18, 7:08 am, MorningZ  wrote:
>
> > > "I was trying to fix that with Zebra
> > > widget but gave up."
>
> > > Well, thistablesorterplugin most definitely does work, both on load
> > > and client sorting
>
> > > i'd suggest being more descriptive on why you gave up (explanation?
> > > example code?  question to clarify what it does?), instead of trying
> > > to recreate code that already works
>
> > > On Dec 17, 10:41 pm, adeveloper  wrote:
>
> > > > My table has alternating row coloring. It get's messed up after
> > > > sorting (eg, instead of odd, even, odd I get something like even,
> > > > even, odd, even, even...etc) I was trying to fix that with Zebra
> > > > widget but gave up.
>
> > > > All I need to do is to call this simple function 
> > > > tohttp://www.sitepoint.com/article/background-colors-javascript/, but I
> > > > am not sure where. I tried putting into:
> > > > 

[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-19 Thread adeveloper

It appears to be happening because I have a table inside a row. When I
removed the table inside one of the cells, everything is fine.

I tried disabling the column with the table (sorter:false), but that
did not help. Is there a workaround (except completely removing the
inner table)?




On Dec 19, 7:47 pm, adeveloper  wrote:
> anybody?
>
> On Dec 19, 1:17 am, adeveloper  wrote:
>
> > The row coloring is done on client-side (withtablesorteritself). It
> > works on document load. However, after sorting, all rows become the
> > same color. Why is row coloring not preserved after sorting? What can
> > be the reason?
>
> > Here is a snippet:
> > -
> > 
> > 
> > 
> >         
> >                 Text
> >                 Text
> >         
> > 
> > 
> >         
> >                 Text
> >                 
> >                         Number
> >                                 Time
> >                 
> >                 
> >                   
> >                         
> >                                 
> >                         
> >                   
> >                 
> >         
> >         
> >               .
> >         
> > 
> > 
> > 
> > -
> > $(document).ready(function() {
> >     $("#tableID").tablesorter({
> >         headers: {
>
> >                 4: {
> >                            sorter: 'time'
> >                            }
>
> >                 },
> >                 widgets:['zebra'],
> >                 widgetZebra: {css: ["even","odd"]}
> >     });
>
> > });
>
> > -
> > .odd {
> > background-color: ...}
>
> > .even {
> > background-color: ...}
>
> > -
>
> > On Dec 18, 7:08 am, MorningZ  wrote:
>
> > > "I was trying to fix that with Zebra
> > > widget but gave up."
>
> > > Well, thistablesorterplugin most definitely does work, both on load
> > > and client sorting
>
> > > i'd suggest being more descriptive on why you gave up (explanation?
> > > example code?  question to clarify what it does?), instead of trying
> > > to recreate code that already works
>
> > > On Dec 17, 10:41 pm, adeveloper  wrote:
>
> > > > My table has alternating row coloring. It get's messed up after
> > > > sorting (eg, instead of odd, even, odd I get something like even,
> > > > even, odd, even, even...etc) I was trying to fix that with Zebra
> > > > widget but gave up.
>
> > > > All I need to do is to call this simple function 
> > > > tohttp://www.sitepoint.com/article/background-colors-javascript/, but I
> > > > am not sure where. I tried putting into:
> > > > 

[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-19 Thread adeveloper

It appears to be happening because I have a table inside a row. When I
removed the table inside one of the cells, everything is fine.

I tried disabling the column with the table (sorter:false), but that
did not help. Is there a workaround (except completely removing the
inner table)?




On Dec 19, 7:47 pm, adeveloper  wrote:
> anybody?
>
> On Dec 19, 1:17 am, adeveloper  wrote:
>
> > The row coloring is done on client-side (withtablesorteritself). It
> > works on document load. However, after sorting, all rows become the
> > same color. Why is row coloring not preserved after sorting? What can
> > be the reason?
>
> > Here is a snippet:
> > -
> > 
> > 
> > 
> >         
> >                 Text
> >                 Text
> >         
> > 
> > 
> >         
> >                 Text
> >                 
> >                         Number
> >                                 Time
> >                 
> >                 
> >                   
> >                         
> >                                 
> >                         
> >                   
> >                 
> >         
> >         
> >               .
> >         
> > 
> > 
> > 
> > -
> > $(document).ready(function() {
> >     $("#tableID").tablesorter({
> >         headers: {
>
> >                 4: {
> >                            sorter: 'time'
> >                            }
>
> >                 },
> >                 widgets:['zebra'],
> >                 widgetZebra: {css: ["even","odd"]}
> >     });
>
> > });
>
> > -
> > .odd {
> > background-color: ...}
>
> > .even {
> > background-color: ...}
>
> > -
>
> > On Dec 18, 7:08 am, MorningZ  wrote:
>
> > > "I was trying to fix that with Zebra
> > > widget but gave up."
>
> > > Well, thistablesorterplugin most definitely does work, both on load
> > > and client sorting
>
> > > i'd suggest being more descriptive on why you gave up (explanation?
> > > example code?  question to clarify what it does?), instead of trying
> > > to recreate code that already works
>
> > > On Dec 17, 10:41 pm, adeveloper  wrote:
>
> > > > My table has alternating row coloring. It get's messed up after
> > > > sorting (eg, instead of odd, even, odd I get something like even,
> > > > even, odd, even, even...etc) I was trying to fix that with Zebra
> > > > widget but gave up.
>
> > > > All I need to do is to call this simple function 
> > > > tohttp://www.sitepoint.com/article/background-colors-javascript/, but I
> > > > am not sure where. I tried putting into:
> > > > 

[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-19 Thread adeveloper

anybody?

On Dec 19, 1:17 am, adeveloper  wrote:
> The row coloring is done on client-side (withtablesorteritself). It
> works on document load. However, after sorting, all rows become the
> same color. Why is row coloring not preserved after sorting? What can
> be the reason?
>
> Here is a snippet:
> -
> 
> 
> 
>         
>                 Text
>                 Text
>         
> 
> 
>         
>                 Text
>                 
>                         Number
>                                 Time
>                 
>                 
>                   
>                         
>                                 
>                         
>                   
>                 
>         
>         
>               .
>         
> 
> 
> 
> -
> $(document).ready(function() {
>     $("#tableID").tablesorter({
>         headers: {
>
>                 4: {
>                            sorter: 'time'
>                            }
>
>                 },
>                 widgets:['zebra'],
>                 widgetZebra: {css: ["even","odd"]}
>     });
>
> });
>
> -
> .odd {
> background-color: ...}
>
> .even {
> background-color: ...}
>
> -
>
> On Dec 18, 7:08 am, MorningZ  wrote:
>
> > "I was trying to fix that with Zebra
> > widget but gave up."
>
> > Well, thistablesorterplugin most definitely does work, both on load
> > and client sorting
>
> > i'd suggest being more descriptive on why you gave up (explanation?
> > example code?  question to clarify what it does?), instead of trying
> > to recreate code that already works
>
> > On Dec 17, 10:41 pm, adeveloper  wrote:
>
> > > My table has alternating row coloring. It get's messed up after
> > > sorting (eg, instead of odd, even, odd I get something like even,
> > > even, odd, even, even...etc) I was trying to fix that with Zebra
> > > widget but gave up.
>
> > > All I need to do is to call this simple function 
> > > tohttp://www.sitepoint.com/article/background-colors-javascript/, but I
> > > am not sure where. I tried putting into:
> > > 

[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-19 Thread adeveloper

anybody?

On Dec 19, 1:17 am, adeveloper  wrote:
> The row coloring is done on client-side (withtablesorteritself). It
> works on document load. However, after sorting, all rows become the
> same color. Why is row coloring not preserved after sorting? What can
> be the reason?
>
> Here is a snippet:
> -
> 
> 
> 
>         
>                 Text
>                 Text
>         
> 
> 
>         
>                 Text
>                 
>                         Number
>                                 Time
>                 
>                 
>                   
>                         
>                                 
>                         
>                   
>                 
>         
>         
>               .
>         
> 
> 
> 
> -
> $(document).ready(function() {
>     $("#tableID").tablesorter({
>         headers: {
>
>                 4: {
>                            sorter: 'time'
>                            }
>
>                 },
>                 widgets:['zebra'],
>                 widgetZebra: {css: ["even","odd"]}
>     });
>
> });
>
> -
> .odd {
> background-color: ...}
>
> .even {
> background-color: ...}
>
> -
>
> On Dec 18, 7:08 am, MorningZ  wrote:
>
> > "I was trying to fix that with Zebra
> > widget but gave up."
>
> > Well, thistablesorterplugin most definitely does work, both on load
> > and client sorting
>
> > i'd suggest being more descriptive on why you gave up (explanation?
> > example code?  question to clarify what it does?), instead of trying
> > to recreate code that already works
>
> > On Dec 17, 10:41 pm, adeveloper  wrote:
>
> > > My table has alternating row coloring. It get's messed up after
> > > sorting (eg, instead of odd, even, odd I get something like even,
> > > even, odd, even, even...etc) I was trying to fix that with Zebra
> > > widget but gave up.
>
> > > All I need to do is to call this simple function 
> > > tohttp://www.sitepoint.com/article/background-colors-javascript/, but I
> > > am not sure where. I tried putting into:
> > > 

[jQuery] Re: reinstanciate plugin after Ajax page update

2008-12-19 Thread danfreak

Cheers Karl,

well my situation is slightly different compared to that I described
above:

1) I have an iframe I use to upload images under a form
2) I have the list of the uploaded images over the iframe
3) once an image is uploaded successfully it gets appended to the list
of the images


The script responsible for this is:



link(array($wbConf['js']['jquery']));?>
link(array('shared/jquery.fancybox-1.0.0'))?>

var $j = jQuery.noConflict();
var par = window.parent.document;
var message = '
'; //creo HTML nuova immagine var img_html = 'imgup($class. '/'.$foreignKey.'/ small/m_' . $imgName, array('class'=>'jt', 'title'=>'immagine', 'alt'=>'immagine'))?>'; //creo HTML menu nuova immagine var menu = ''; var htmlToInsert = img_html + menu;//let's set par to the parent document //aggiungi class a div immagine per sorting $j('#thumbs', par).children('.thumb:last').attr('id', '- '); //removes the spinner to the last uploaded image and replaces it with the new img and menu $j('#thumbs', par).children('.thumb:last').html('').append (htmlToInsert); $j('#thumbs a...@rel*=fancybox]', par).fancybox(); var htmlToInsert = message; $j('#thumbs', par).children('.thumb:last').remove(); After the upload of 1 ore more images: - fancybox still works but only on the images already present - fancybox doesn't work on the newly injected images I refer to fancybox here, just because I use it, but I experienced the same behavior with cluetip using the above described technique. Any clue on how to apply the .fancybox function to the newly injected images? Dan

[jQuery] jQuery UI Tabs (Selected tab item)

2008-12-19 Thread 01Kuzma

Hi all!
Currently I haven't coded JS, so I don't know how to solve my problem.
So, I'm using jQuery UI Tabs (http://stilbuero.de/jquery/tabs_3/)
and I encountered with problem. I need to get an ID or something else
of currently selected tab and send it to PHP.
The code is:



 
$(function() {

$('#container-5').tabs({ fxSlide: true, fxFade: true,
fxSpeed: 'normal' });


});

  




123
456
789
000


   adasd












The main problem is, that all php files are loaded simultaneously, but
i need that they load only when i press on a current tab.

In documentation I've found and JS code :
var $tabs = $('#example').tabs();
var selected = $tabs.data('selected.tabs');
but I don't understand how to use it.
Thank you !


[jQuery] jQuery UI Tabs (Selected tab item)

2008-12-19 Thread 01Kuzma

Hi all!
Currently I haven't coded JS, so I don't know how to solve my problem.
So, I'm using jQuery UI Tabs (http://stilbuero.de/jquery/tabs_3/)
and I encountered with problem. I need to get an ID or something else
of currently selected tab and send it to PHP.
The code is:



 
$(function() {

$('#container-5').tabs({ fxSlide: true, fxFade: true,
fxSpeed: 'normal' });


});

  




123
456
789
000


   adasd












The main problem is, that all php files are loaded simultaneously, but
i need that they load only when i press on a current tab.

In documentation I've found and JS code :
var $tabs = $('#example').tabs();
var selected = $tabs.data('selected.tabs');
but I don't understand how to use it.
Thank you !


[jQuery] jQuery UI Tabs (Selected tab item)

2008-12-19 Thread 01Kuzma

Hi all!
Currently I haven't coded JS, so I don't know how to solve my problem.
So, I'm using jQuery UI Tabs (http://stilbuero.de/jquery/tabs_3/)
and I encountered with problem. I need to get an ID or something else
of currently selected tab and send it to PHP.
The code is:



 
$(function() {

$('#container-5').tabs({ fxSlide: true, fxFade: true,
fxSpeed: 'normal' });


});

  




123
456
789
000


   adasd












The main problem is, that all php files are loaded simultaneously, but
i need that they load only when i press on a current tab.

In documentation I've found and JS code :
var $tabs = $('#example').tabs();
var selected = $tabs.data('selected.tabs');
but I don't understand how to use it.
Thank you !


[jQuery] Re: Superfish dropup?

2008-12-19 Thread jeremyBass

Ok... done... And it works with IE6 just fine... test on a win98
IE6... I guess that was not as hard as I was thinking lol... thanks
for the lead on the menu... have a great day...

jeremyBass

ever are the


/*** ESSENTIAL UP STYLES ***/
.sf-menuUP, .sf-menuUP * {
margin: 0;
padding:0;
list-style: none;
}
.sf-menuUP {
line-height:1.0;
}
.sf-menuUP ul {
position:   absolute;
bottom: -999em;
width:  10em; /* left offset of submenus need to match 
(see below)
*/
}
.sf-menuUP ul li {
width:  100%;
}
.sf-menuUP li:hover {
visibility: inherit; /* fixes IE7 'sticky bug' */
}
.sf-menuUP li {
float:  left;
position:   relative;
}
.sf-menuUP a {
display:block;
position:   relative;
}
.sf-menuUP li:hover ul,
.sf-menuUP li.sfHover ul {
left:   0;
bottom: 2.5em; /* match top ul list item height */
z-index:99;
}
ul.sf-menuUP li:hover li ul,
ul.sf-menuUP li.sfHover li ul {
bottom: -999em;
}
ul.sf-menuUP li li:hover ul,
ul.sf-menuUP li li.sfHover ul {

bottom:90%; left:5%;
}
ul.sf-menuUP li li:hover li ul,
ul.UP li li.sfHover li ul {
top:-999em;
}
ul.sf-menuUP li li li:hover ul,
ul.sf-menuUP li li li.sfHover ul {
left:   10em; /* match ul width */
top:0;
}


On Dec 19, 1:14 pm, jeremyBass  wrote:
> Thanks Jen... I'll give that a go When I get the IE6 bugs out I'll
> post back...
>
> To anyone else... If you know of a fully working cross borwser example
> or what not there are two of us that would be greatful
>
> Thanks again...
>
> Jeremy
>
> On Dec 19, 12:42 pm, jen  wrote:
>
>
>
> > I did this at:
>
> >http://www.raydunetz.com/
>
> > I hope that the code makes sense.  I know that it has an issue in IE
> > 6, and I wanted to try to use jquery to fix it, but haven't been quite
> > savvy enough to accomplish it.
> > j
>
> > On Dec 19, 3:40 pm, jeremyBass  wrote:
>
> > > Does any one know how to do this or were I can find information on
> > > this?... thank you for the help...
>
> > > Jeremy
>
> > > On Dec 18, 1:15 pm, jeremyBass  wrote:
>
> > > > I love this menu system... but now I have a project that I need to
> > > > set
> > > > the menu at the bottom... so the dropdowns no need to be dropUps... I
> > > > have be working at this with no luck.  Any one know how to have the
> > > > menu drop upwards?  Thanks for the help...- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


[jQuery] Autocomplete plugin: Function on result select

2008-12-19 Thread patrick91

Hi, i need to compile an hidden input when a value from the
autocomplete list is selectedbut I don't know how can I do it?

Can you help me?

thanks


[jQuery] nested sortable nesting limit

2008-12-19 Thread chicha

Hi friends i am using jquery/interface nestedsortable plugin,this
plugin not working properly for nesting limit.author commented
developement of this nesting limit is halted.
http://code.google.com/p/nestedsortables/wiki/NestedSortableDocumentation
please help me re:nesting limit,present i need 3 levels only.

please reply urgently,i have worked alot on this functionality.


[jQuery] Re: jQuery nodes traversing

2008-12-19 Thread Ricardo Tomasi

To get the #main parent you'd use

$('h2').parents('#main')

You can get indexes for all parents in 'inside out' order, or use the
index() function to calculate them:

$('h2').parents().each(function(index){
   // p index == 0
   // div index == 1
   // #main index == 2
   $(this).parent().children().index(this); //should give you the
indexes you want (p==2,div==0)
});

Hope you get the idea. Check the documentation (docs.jquery.com/
Selectors, docs.jquery.com/Traversing) in case of doubt :)

- ricardo


On Dec 19, 2:13 pm, "graphic...@googlemail.com"
 wrote:
> Hi,
>
> Consider the following html :
>
> 
>   
>       
>       
>       
>           target node 
>       
>   
> 
>
> Starting from the h2 node, I want to find its closest parent with an
> id, in this case the div with id="main".  I also want to store the
> index position of all of the parents of the target. In this case that
> would be 0 (for the div right under "main") and 2 (for the third )
>
> How can I do that using jQuery ? I hope what I ask is clear enough.


[jQuery] Re: Downloading jquery

2008-12-19 Thread Richard D. Worth
On Fri, Dec 19, 2008 at 3:46 PM, ej2451  wrote:

>
> I just downloaded the jquery libraries (this stuff is awesome!).
> From what I've tried so far, it looks like I can do all the jquery
> functions and UI functions by just including two .js files.
> 1) jquery.1.2.6.js
> 2) jquery.ui.all.js
>
> I know it may be more than I need for now (e.g, if I only want to do
> draggable I could just use ui.draggable.js and ui.core.js), but I'd
> rather take up more space than worry about what libraries to include.
>
> Am I correct in that I can do all the jquery and UI functions /
> widgets / datepicker with just those 2 files?


Yes. Those are the only js files needed if you want jQuery and all of jQuery
UI. You may also want to grab/create a jQuery UI theme from
http://themeroller.com/

If at some point you want only some jQuery UI components, but still just
want to include 2 files (jquery.js, jquery.ui.js), you can create a
personalized version of jQuery UI with just the components you want with the
download builder: http://ui.jquery.com/download_builder/

Note: if you have any further questions about jQuery UI specifically (not
just jQuery), there's a dedicated list for jQuery UI:

http://groups.google.com/group/jquery-ui

- Richard


[jQuery] Re: Superfish dropup?

2008-12-19 Thread jeremyBass

Thanks Jen... I'll give that a go When I get the IE6 bugs out I'll
post back...

To anyone else... If you know of a fully working cross borwser example
or what not there are two of us that would be greatful

Thanks again...

Jeremy


On Dec 19, 12:42 pm, jen  wrote:
> I did this at:
>
> http://www.raydunetz.com/
>
> I hope that the code makes sense.  I know that it has an issue in IE
> 6, and I wanted to try to use jquery to fix it, but haven't been quite
> savvy enough to accomplish it.
> j
>
> On Dec 19, 3:40 pm, jeremyBass  wrote:
>
>
>
> > Does any one know how to do this or were I can find information on
> > this?... thank you for the help...
>
> > Jeremy
>
> > On Dec 18, 1:15 pm, jeremyBass  wrote:
>
> > > I love this menu system... but now I have a project that I need to
> > > set
> > > the menu at the bottom... so the dropdowns no need to be dropUps... I
> > > have be working at this with no luck.  Any one know how to have the
> > > menu drop upwards?  Thanks for the help...- Hide quoted text -
>
> - Show quoted text -


[jQuery] superfish menu - would like top nav to retain hover color as you mouse over subnav

2008-12-19 Thread jquery

Is it possible to have the top navigation to retain it's hover color
as you mouse over the subnav items in the list below? I have a lot of
menu items and I got rid of the pointer arrow because it didn't work
with the design. I would just like the top nav to retain the hover
color instead. Also, I only want the subnav that you're hovering over
to have the hover color.


[jQuery] Downloading jquery

2008-12-19 Thread ej2451

I just downloaded the jquery libraries (this stuff is awesome!).
>From what I've tried so far, it looks like I can do all the jquery
functions and UI functions by just including two .js files.
1) jquery.1.2.6.js
2) jquery.ui.all.js

I know it may be more than I need for now (e.g, if I only want to do
draggable I could just use ui.draggable.js and ui.core.js), but I'd
rather take up more space than worry about what libraries to include.

Am I correct in that I can do all the jquery and UI functions /
widgets / datepicker with just those 2 files?

Thanks for any help on this.


[jQuery] Re: Superfish dropup?

2008-12-19 Thread jen

I did this at:

http://www.raydunetz.com/

I hope that the code makes sense.  I know that it has an issue in IE
6, and I wanted to try to use jquery to fix it, but haven't been quite
savvy enough to accomplish it.
j


On Dec 19, 3:40 pm, jeremyBass  wrote:
> Does any one know how to do this or were I can find information on
> this?... thank you for the help...
>
> Jeremy
>
> On Dec 18, 1:15 pm, jeremyBass  wrote:
>
> > I love this menu system... but now I have a project that I need to
> > set
> > the menu at the bottom... so the dropdowns no need to be dropUps... I
> > have be working at this with no luck.  Any one know how to have the
> > menu drop upwards?  Thanks for the help...


[jQuery] Re: Submit a form automatically

2008-12-19 Thread Adam

I was planning to submit the form in a jquery dialog, read the
response, and then put the response text in a new browser window.

I'm probably better off just scrapping my plan and sticking to opening
the form in a new window and submitting in the same window without
using ajax.

thanks.

On Dec 19, 2:30 pm, Mike Alsup  wrote:
> > These suggestions helped, but I now I can't figure out how to submit a
> > form with a URL of an external site... i.e. my site ishttp://www.abc.com/
> > , but I want to submit a form tohttp://www.123.com/
>
> > Is this possible in ajax?
>
> No, not with ajax, but the code I posted didn't use ajax.  It just
> submitted the form - and the destination is controlled by the form's
> action attribute.


[jQuery] Re: Superfish dropup?

2008-12-19 Thread jeremyBass

Does any one know how to do this or were I can find information on
this?... thank you for the help...

Jeremy

On Dec 18, 1:15 pm, jeremyBass  wrote:
> I love this menu system... but now I have a project that I need to
> set
> the menu at the bottom... so the dropdowns no need to be dropUps... I
> have be working at this with no luck.  Any one know how to have the
> menu drop upwards?  Thanks for the help...


[jQuery] Serial Scroll, animated images look jagged

2008-12-19 Thread jen

http://www.louriecutler.com.ws019.alentus.com/people/slider.php

What am I doing wrong, that the images slide across looking so jagged?

Thanks!


[jQuery] ie6 and the validation plugin

2008-12-19 Thread Sean Allen


i have this code:






   

works fine in everything but ie6 ( yes i know ie6 sucks... still need  
to support... )


in ie6 i get this message

 jQuery.validator.messages is null or not an object.

i changed to this:

jQuery(document).ready(function(){
if ( typeof( jQuery.validator.messages ) == "object" )
{
jQuery.validator.messages.required = "";
}
jQuery("#lf").bind("invalid-form.validate", function(e,  
validator) {

var errors = validator.numberOfInvalids();
if (errors) {
var message = "Please complete the form:";
jQuery("#formheader").html(message);
jQuery("#formheader").show();
}
}).validate({
onkeyup: false,
onfocusout: false,
messages: {
email: {
required: " ",
email: ""
}
}
});
});

and then the error is that

jQuery.validator is null or not an object



[jQuery] [SITE] tunerec.com

2008-12-19 Thread Alexandre Plennevaux

just read about and tried this amazing online music player. snappy
interface. Subscribe to the beta to check it out. Gets better after a
few days but it is really promising and the interface is slick!

http://tunerec.com/


alexandre


[jQuery] Re: create a translate plugin using jQuery

2008-12-19 Thread Balazs Endresz

If you have the translation:
http://recurser.com/articles/2008/02/21/jquery-i18n-translation-plugin/

Alternatively, if you want to use Google's machine translation:
http://code.google.com/p/jquery-translate/

On Dec 19, 10:33 am, Rabab CHAKHMOUNE 
wrote:
> Hello
>
> I want to create a plugin to translate a site web (translate english
> to french)
> and i don't know what i need for begin my project to create this
> plugin.
>
> any one here can help me?
>
> tkx
>
> ""sorry for my english because i speak frensh""
>
> Rabab


[jQuery] Re: Submit a form automatically

2008-12-19 Thread Mike Alsup

> These suggestions helped, but I now I can't figure out how to submit a
> form with a URL of an external site... i.e. my site ishttp://www.abc.com/
> , but I want to submit a form tohttp://www.123.com/
>
> Is this possible in ajax?

No, not with ajax, but the code I posted didn't use ajax.  It just
submitted the form - and the destination is controlled by the form's
action attribute.


[jQuery] Re: How can executable jquery/jscript be returned in an Ajax response

2008-12-19 Thread fambi

Ricardo,

What you are suggesting is what we're already doing. But I would like
to feed that command through the response.

Is that possible?

F.


On Dec 19, 8:58 pm, Ricardo Tomasi  wrote:
> $('contents').appendTo('table.ofmine').click(function
> (){
>  ...
>
> })
>
> Or use the LiveQuery plugin, then you can register handlers only once
> for all similar elements (http://brandonaaron.net/jquery/plugins/
> livequery)
>
> - ricardo
>
> On Dec 19, 3:36 am, fambi  wrote:
>
> > Let's say filling a form should add a row to a table.
>
> > Responding with the html row is not a problem, but how do you include
> > the event to add the row and any listeners which might follow after
> > it?
>
> > Thanks


[jQuery] Re: Submit a form automatically

2008-12-19 Thread Adam

These suggestions helped, but I now I can't figure out how to submit a
form with a URL of an external site... i.e. my site is http://www.abc.com/
, but I want to submit a form to http://www.123.com/

Is this possible in ajax?

Thanks,

A.

On Dec 13, 8:22 am, Mike Alsup  wrote:
> > I have a dynamically created form that I'd like to submit
> > automatically after it loads.  It doesn't look like forms have an
> > onload event.  I would use the window onload, but the form isn't
> > necessarily around when the window loads - it is created later in a
> > jquery popup.
>
> > Any suggestions?  I am using the jquery form plugin if it matters.
>
> After you create the form and insert it into the DOM, select it and
> invoke the submit method.  For example:
>
> $('#someDiv').append('...');
> $('#myForm').submit();


[jQuery] validation plugin negative number rule?

2008-12-19 Thread Adam

How can I create a rule in the validation plugin to disallow negative
numbers.  I have a text field that should accept any number > 0

thanks,

A.


[jQuery] Re: [validate] Ignore maxLength in validated field

2008-12-19 Thread Titus Johnson
That worked like a charm! Thanks much.

- Titus Johnson


-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf 
Of Jörn Zaefferer
Sent: Thursday, December 18, 2008 4:20 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: [validate] Ignore maxLength in validated field

Try this:

delete $.validator.methods.maxlength;

That should remove the maxlength-validation method, therefore ignoring
the attribute in the markup.

Jörn

On Thu, Dec 18, 2008 at 12:31 AM, Titus  wrote:
>
> I'm using another jQuery plugin (jquery.textCounting.js) to display a
> character limit for each field based on its maxlength field. I don't
> want jquery.validate.js to validate the maxlength for any field in my
> form, but I do want it to perform all its other functions. Any idea
> how to do this?
>
>
> Right now Validation is preventing submission when a field violates
> its maxlength, which is undesirable behavior for this form.
>
> Thanks,
>


[jQuery] Re: keep user from clicking links while cycle is in motion

2008-12-19 Thread Mike Dodge
For some reason the footer links don't work when I put the code in util.js.
 So I had to make a seperate file for them.

On Fri, Dec 19, 2008 at 12:12 PM, Mike Alsup  wrote:

>
> > Anyone have some ideas as to how to stop/prevent the user from clicking
> or
> > even just prevent something from happening when the user clicks a link
> while
> > the cycle is in motion.Thanks
> > Mike
> >
> > On Thu, Dec 18, 2008 at 8:39 AM, Mike Dodge 
> wrote:
> > > I am working on a site here: adc4web.adceval.com  I have a problem
> where
> > > while the cycle is shifting a page, the user can still click a link and
> this
> > > screws up the cycle after clicking a bunch of links.  Is there a way to
> > > prevent the user from clicking a link until the cycle is done? Thanks
> > > Mike
>
> Looks like you're doing a lot of extra work in
> internalPageSwitcher.js.  Cycle should be able to handle this on its
> own and it automatically ignores clicks that occur during an
> animation.
>
> Mike
>


[jQuery] jqGrid with web service of .net framwork

2008-12-19 Thread FrenchiINLA

Is there anyone who could work with jqGrid and web services in a
asp.net project? I really try hard to just be able to call the method
in my web service for no avail. I have the following in my html file:

$(function() {

$('#list').jqGrid({

url: 'Services/Bill.asmx/Get_Client_jqGrid'
 , datatype: 'xmlstring'

, colNames: ['Name']
, colModel:
[
{ name: 'CltName', index: 'CltName', width: 55 }
]

, caption: "Client"

}); // jqGrid
});  // ready






And I made a web service with the following signature:
[WebMethod]

public string  Get_Client_jqGrid()
{
// just some code to test the 
HttpContext.Current.Request.Params[]
}
I put a breakpoint in the web service but it’s never been called. I
get jut the header with Loading message. any help would be really
appreciated. I tried a grid with local data, and the edit return
perfectly to another WebMethod of the web service.


[jQuery] superfish dropdown menu

2008-12-19 Thread Brittney

I’ve just come across your superfish extension in the joomla extension
directory, and I’d like to ask you a question about it. Is it possible
to have more than three levels? The demo here (http://users.tpg.com.au/
j_birch/plugins/superfish/#examples) only shows three levels- so
that’s why I ask.

I am currently using the extended menu with son of suckerfish, and
can’t seem to find a solution for going over 3 levels of menus. If I
go over three all of the levels spill out at once when I hover over
the main level.

Thanks,

Brittney


[jQuery] Re: keep user from clicking links while cycle is in motion

2008-12-19 Thread Mike Alsup

> Anyone have some ideas as to how to stop/prevent the user from clicking or
> even just prevent something from happening when the user clicks a link while
> the cycle is in motion.Thanks
> Mike
>
> On Thu, Dec 18, 2008 at 8:39 AM, Mike Dodge  wrote:
> > I am working on a site here: adc4web.adceval.com  I have a problem where
> > while the cycle is shifting a page, the user can still click a link and this
> > screws up the cycle after clicking a bunch of links.  Is there a way to
> > prevent the user from clicking a link until the cycle is done? Thanks
> > Mike

Looks like you're doing a lot of extra work in
internalPageSwitcher.js.  Cycle should be able to handle this on its
own and it automatically ignores clicks that occur during an
animation.

Mike


[jQuery] Problem for calling ajaxStart and ajaxStop

2008-12-19 Thread bookme

Hi,

I am trying to call tow times $.ajax  request using type: "POST" for
different actions on same page.
For this I am showing a loader image on  ajaxStart and hiding on
ajaxStop. I am using different id for diffrent functions but when I
call any one ajax request other's loading image also showing.

My mean to say that ajaxStart  and ajaxStop function are not working
for their respectively ids.

1) first Function call

Add to Favorite



jQuery('#id_fav_loading').ajaxStart(function() {
   jQuery(this).show();
   jQuery('#id_add_fav').hide();
  }).ajaxStop(function() {
  jQuery(this).hide();
  jQuery('#id_add_fav').show();
  });

2)  second function call

 too



  jQuery('#id_problem_too_loading').ajaxStart(function() {
   jQuery(this).show();
   jQuery('#id_add_ptoo').hide();
  }).ajaxStop(function() {
  jQuery(this).hide();
  jQuery('#id_add_ptoo').show();
  });

like example;  when I call problemToo(); (second function) then loader
image is displaying on both places. while it must be display for only
"id_problem_too_loading.

Can any one tell me whats my mistake here.

Thanks!


[jQuery] Re: reinstanciate plugin after Ajax page update

2008-12-19 Thread Karl Swedberg

Hi Dan,

In the success callback of the ajax request, you can call the fancybox  
or cluetip method on the links within the ajaxed content:


For example, using $.get() :

$.get('/test/ajax-test.xml', function(content){
 // dump your new content
 $('newcontentcontainer a[rel=facebox]').facebox(); // < --- call  
fancybox again.

});

You'll need to replace "newcontentcontainer" with the real selector  
for the element, of course.


--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Dec 19, 2008, at 10:56 AM, danfreak wrote:



Hey guys,

I came across this problem a few times and I'm sure there is an easy
fix.

Well...

THE PROBLEM

on bottom of a certain HTML page I call a jQuery plugin, let's say
cluetip or fancybox.
as follows



   jQuery('a...@rel*=fancybox]').fancybox();


Everything works fine... since I don't append something on the page
after an Ajax request, that needs fancybox again.

It's like, in this case, fancybox, doesn't notices the new element in
the page with the attribute my item

How can I then I guess "reinstanciate" the plugin?

Cheers in advance!

Dan




[jQuery] Re: keep user from clicking links while cycle is in motion

2008-12-19 Thread Eric "Hobo" Garside

I haven't looked at the site or the specific code yet, but just from
experience, the easiest way I know of is to use something like this.

var globalPause = false;

$('a').click(function(){
if (globalPause) return false;
});

Then when your cycle starts, set the globalPause variable to true, and
when it ends, set it to false. This should interrupt the links firing
when the flag is set, and enable standard use when it's off.

On Dec 19, 11:10 am, "Mike Dodge"  wrote:
> Anyone have some ideas as to how to stop/prevent the user from clicking or
> even just prevent something from happening when the user clicks a link while
> the cycle is in motion.Thanks
> Mike
>
> On Thu, Dec 18, 2008 at 8:39 AM, Mike Dodge  wrote:
> > I am working on a site here: adc4web.adceval.com  I have a problem where
> > while the cycle is shifting a page, the user can still click a link and this
> > screws up the cycle after clicking a bunch of links.  Is there a way to
> > prevent the user from clicking a link until the cycle is done? Thanks
> > Mike


[jQuery] Re: Best way to do this for multiple input fields?

2008-12-19 Thread Ricardo Tomasi

That's exactly what MorningZ offered:

$("input[id^='item']") will get you all inputs with an #itemXX id,
then you just

$("span[id^='check']").click(function(){
  $("input[id^='item']").ajaxStart(function(){
 })
});

You can achieve the same in a cleaner way using classes.

- ricardo

On Dec 19, 7:02 am, "Carlo Landmeter"  wrote:
> Hi,
>
> Thanks for your reply.
>
> The problem isn't how to get the the content out of the input fields.
>
> I have multiple input fields which each have a span which i use for .click.
> I can do what i want for one field and span with the below code.
> If i would like to do this for 10 fields i would have to repeat this code
> below 10x.
> Isn't there an easier way to loop this code with jquery just like i would do
> with php?
>
> I've tried to use .each but i couldn't find out how I could properly replace
> input#item0 with a variable to loop over it.
> I triedhttp://docs.jquery.com/Utilities/jQuery.each#examplesand tried to
> create a var like this:
>
> var foobar = 'input#item' + i;
>
> This didn't seem to do the trick for all vars in my code below.
>
> Does somebody have an example of how i could do this?
>
> Thx,
>
> Carlo
>
> On Fri, Dec 19, 2008 at 2:14 AM, MorningZ  wrote:
>
> > I'm not 100% clear on what you are trying to accomplish
>
> > but you can select items by what an attribute "starts with"
>
> >http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
>
> > so
>
> > $("input[id^='item']")
>
> > would get all your items regardless of how many there are
>
> > On Dec 18, 5:21 pm, "Carlo Landmeter"  wrote:
> > > Hi,
>
> > > I'm trying to create a form with multiple input fields. These fields
> > should
> > > have a button to be able to check its content with .ajax.
> > > I am able to create this function for a single field, but i don't know
> > what
> > > the best way would be to do it for multiple input fields:
>
> > > input#item0
> > > input#item1
> > > input#item2
> > > input#item3
> > > .
>
> > > What would be the best way to create this with jquery so i can adjust a
> > > single var to create if for x items?
>
> > > Thx,
>
> > > Carlo
>
> > > $(document).ready(function(){
> > >   $("span#check0").click(function(event){
> > >     $("input#item0").ajaxStart(function(){
> > >       $(this).addClass("loading");
> > >     });
> > >     $("input#item0").ajaxStop(function(){
> > >       $(this).removeClass("loading");
> > >     });
> > >     $.ajax({
> > >       type: "GET",
> > >       url: "checkitem.php",
> > >       data: {
> > >       'sn': $('input#item0').val()},
> > >       'success': function(msg) {
> > >         if (msg == 'OK')
> > > {$("input#item0").removeClass("nowarranty").addClass("warranty");}
> > >         if (msg == 'NG')
> > > {$("input#item0").removeClass("warranty").addClass("nowarranty");}
> > >       },
> > >       'error': function() {alert('Error: please try again');}
> > >     });
> > >   });
>
> > > });


[jQuery] Re: How can executable jquery/jscript be returned in an Ajax response

2008-12-19 Thread Ricardo Tomasi

$('contents').appendTo('table.ofmine').click(function
(){
 ...
})

Or use the LiveQuery plugin, then you can register handlers only once
for all similar elements (http://brandonaaron.net/jquery/plugins/
livequery)

- ricardo

On Dec 19, 3:36 am, fambi  wrote:
> Let's say filling a form should add a row to a table.
>
> Responding with the html row is not a problem, but how do you include
> the event to add the row and any listeners which might follow after
> it?
>
> Thanks


[jQuery] reinstanciate plugin after Ajax page update

2008-12-19 Thread danfreak

Hey guys,

I came across this problem a few times and I'm sure there is an easy
fix.

Well...

THE PROBLEM

on bottom of a certain HTML page I call a jQuery plugin, let's say
cluetip or fancybox.
as follows



jQuery('a...@rel*=fancybox]').fancybox();


Everything works fine... since I don't append something on the page
after an Ajax request, that needs fancybox again.

It's like, in this case, fancybox, doesn't notices the new element in
the page with the attribute my item

How can I then I guess "reinstanciate" the plugin?

Cheers in advance!

Dan


[jQuery] jQuery nodes traversing

2008-12-19 Thread graphic...@googlemail.com

Hi,

Consider the following html :


  
  
  
  
  target node 
  
  


Starting from the h2 node, I want to find its closest parent with an
id, in this case the div with id="main".  I also want to store the
index position of all of the parents of the target. In this case that
would be 0 (for the div right under "main") and 2 (for the third )

How can I do that using jQuery ? I hope what I ask is clear enough.


[jQuery] Re: keep user from clicking links while cycle is in motion

2008-12-19 Thread Mike Dodge
Anyone have some ideas as to how to stop/prevent the user from clicking or
even just prevent something from happening when the user clicks a link while
the cycle is in motion.Thanks
Mike

On Thu, Dec 18, 2008 at 8:39 AM, Mike Dodge  wrote:

> I am working on a site here: adc4web.adceval.com  I have a problem where
> while the cycle is shifting a page, the user can still click a link and this
> screws up the cycle after clicking a bunch of links.  Is there a way to
> prevent the user from clicking a link until the cycle is done? Thanks
> Mike
>


[jQuery] Re: Star rating plugin problems

2008-12-19 Thread Philip Garrett

Bump

On Dec 7, 11:23 pm, Philip Garrett  wrote:
> Hi,
>
> I'm using the latest available version of the star rating plugin from
> fyneworks (http://www.fyneworks.com/jquery/star-rating/) with jQuery
> 1.2.6.
>
> I'm having a few problems when using the star ratings with ajax.  My
> ajax form actually replaces the div that contains the stars widget
> with a fresh one that represents the changed rating.
>
> After replacing the widget with $("#container").html(...), these
> problems start:
> 1. The cancel button disappears
> 2. Mouseovers on the stars stop working until you click another star
> 3. Mouseovers get stuck (especially when mousing off rightwards)
> 4. This error will eventually happen: 'elem.parentNode is
> null' [jquery-1.2.6.js (line 1259)]
>
> I've put together a quick example of the problems 
> here:http://www.pgarrett.net/stars/
>
> Any help you can offer is appreciated.
>
> Thanks,
> Philip


[jQuery] Re: How refresh a div with a link?

2008-12-19 Thread kidhermes




w84me wrote:
>
> You have to use return false; in order for the link not to use its 
> default action which is to reload the page.
> 


Thx I try, but it's stuck the script...
$('#refreshflickr').click(function(){
  $('#flickrcarousel').replaceAll('#flickrcarousel');
  return false;
});

And I notice it's reload all the page not only the feed div...
See attach:
http://www.nabble.com/file/p21093068/draft.html draft.html 

Strange... and thx a lot for your help.

Dom
-- 
View this message in context: 
http://www.nabble.com/How-refresh-a-div-with-a-link--tp21070429s27240p21093068.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Dynamic form validation on different names possible?

2008-12-19 Thread dfiguero

So far I got:

$(function(){
   $.validator.addMethod("compare", function(value, element, param){
  Date.format = 'mmm. dd, ';
  sdate = Date.fromString($(param[0]).val());
  edate = Date.fromString($(param[1]).val());

  return (sdate.getTime() <= edate.getTime()) || this.optional
(element);
   }, "End date must be later than the Start date")

   var rules = {};
   $(".repeatingformfield").each(function(){
  $(this).find(":text").each(function(n){
 if (n == 0)
rule_name = this.name;
 if (n == 1)
start_date = this.id;
 if (n == 2)
end_date = this.id;
  });
  rules[rule_name] = {
 compare: ["#" + start_date, "#" + end_date]
  }
   });

   $(".tableform").validate({debug: true, options: rules});
});

But I guess my logic is not that great since the compare method
doesn't seem to be called. Perhaps the method definition does not
match the way I'm calling it but I'm not able to see that on firebug.

Any suggestions?

Diego.


On Dec 18, 4:10 pm, dfiguero  wrote:
> Thanks Jörn I'll give it a try!
>
> On Dec 18, 12:17 pm, "Jörn Zaefferer" 
> wrote:
>
> > You could generate the rules object.
>
> > var rules = {};
> > $(":input[name*=date-start"]).each(function() {
> >   rules[this.name] = { ... }});
>
> > $("...").validate({options:rules});
>
> > Jörn
>
> > On Thu, Dec 18, 2008 at 3:01 PM,dfiguero wrote:
>
> > > Hi,
>
> > > I'm trying to validate a form with a dynamic date fields. Something
> > > like:
>
> > > 
> > >  
> > >     > > value="Mar. 29, 2008" />
> > >    
> > >  
> > > 
> > > 
> > >  
> > >     > > value="Jun. 02, 2010" />
> > >    
> > >  
> > > 
> > > ...
> > > 
> > >  
> > >     > > value="aaa. 99, " />
> > >    
> > >  
> > > 
>
> > > I got my validation rules working but only if I hardcode each of the
> > > input's names:
>
> > > $("form").validate({
> > >     rules: {
> > >        "date-1-start": compare ["#date_1-start","#date_1-end"],
> > >        "date-2-start": compare ["#date_2-start","#date_2-end"],
> > >        ...
> > >        "date-n-start": compare ["#date_n-start","#date_n-end"]
> > >     }
> > > });
>
> > > Would there be a way to dynamically generate the rules? Something
> > > like:
>
> > > $("form").validate({
> > >     rules: {
> > >        $(":input[name*=date-start"]): compare [$(":input[name*=date-
> > > start"]),$(":input[name*=date-end"])],
> > >     }
> > > });
>
> > > I know I could perhaps do this by adding classes to the input fields
> > > but I would prefer avoiding that option.
>
> > > Thanks
>
>


[jQuery] Tooltip(?) on Jquery Home

2008-12-19 Thread Wilson

Hi, i'm new to Jquery, and would like to know which library what kind
of of tooltip is that at the jquery.com over the "Lightweight
Footprint"/"CSS Compliant"/"Cross Browser".
At first I though it was JTip or clueTip, but neither seemed to both
be sticky and support fade.

 Thanks in advance.


[jQuery] Re: Simplemodal plugin position problem subsequent loads

2008-12-19 Thread Eric Martin

Do you have a link you can post or send to me?

-Eric

On Dec 18, 6:26 pm, zonathen  wrote:
> I am using simplemodal perfectly fine everywhere but on one page it
> loads the content off to the right side of the screen on subsequent
> clicks.
>
> The first time the modal loads perfectly centered as it should but the
> second time it is on the right side of the screen and further towards
> the bottom and stays there for all subsequent loads.
>
> Any ideas?


[jQuery] [validate] Missing the submit button params

2008-12-19 Thread Jolle

On 19 Dec, 12:14, Jolle  wrote:
> I'm using the validator plugin from bassistance.de/jquery-plugins/
> jquery-plugin-validation/.
>
> Lovely and really powerful!
> But, my server side logic require the parameters from the submit
> button used. And it seems as if Validator doesn't include that when
> submitting the form.
> The param I need especially is the name of the button.
>
> Is this some setting I can make or does it require tweaking of the
> Validator plugin?

Doing som testing shows that it's the remote validation that trips
Validator.
In the form I have a field that's already populated with a value and
that field is set to use remote validation. If the field is unchanged
and I submit the form then the name and value for the submit button is
not sent. If I change the value of the field before submit and thus
trigger the remote validation then the form is submitted without
issue.

There's a test page here if anyone's interested:
http://cojan.se/validatetest.lasso

HDB
Jolle



[jQuery] Re: jquery validation

2008-12-19 Thread sad1sm0

if you are trying to assign an id to an element that's already part of
the dom you need to be sure that you use a selector that is specific
to only that element and add the id attribute with .attr
('id','error').

As far as showing and hiding passwords, you should just be able to
change the type attr from password to text and back to password
$("a.show").click(function() {$("#pwd1").attr('type','text');});
$("a.hide").click(function() {$("#pwd1").attr('type','password');});

This isn't tested but I see no reason why it wouldn't work.

On Dec 19, 7:27 am, Baki  wrote:
> How can i add ID="error" instead of a class using jquery.
>
> Also is there a way to say that "you must uncheck the box before
> submitting the form.
>
> Im usinghttp://jquery.bassistance.de/validate/demo/milk/as an
> example.
>
> Also is there a way to use jquery to show/hide passwords, i done it
> using js but i want to use jquery
>
> I want to add these. Can anyone help


[jQuery] Re: Split button plugins (?)

2008-12-19 Thread Dave Methvin

I haven't seen any myself. This page from YUI provides a good outline
of the markup to use:

http://developer.yahoo.com/yui/examples/button/btn_example08.html


[jQuery] Re: close a function and load...

2008-12-19 Thread sad1sm0

Hey I'm not exactly sure of what you are trying to do but maybe
something like this will work:

$("#close").click(function() {$("@src=/media/js/function1.js").attr
('src','/media/js/function2.js');});

On Dec 19, 8:32 am, "Alfredo Alessandrini" 
wrote:
> Hi,
>
> can I close a jquery function and load a new function with a mouse click?
>
> like this:
>
> on mouse click -> CLOSE " src="/media/js/function1.js">" -> LOAD " type="text/javascript" src="/media/js/function2.js">"
>
> Thanks,
>
> Alfredo


[jQuery] Superfish Question (plus odd google chrome and firefox glitch)

2008-12-19 Thread Cody

Hey Joel,

I am posting this here as you request on your support page. Quick
disclaimer: my knowledge of javascript is very little :)

I am about to switch my sites navigation over to the very excellent
Superfish. I've slightly modified it to add the arrow graphic myself
before javascript (for those without). A quick test page:

http://nationalcitypd.com/super/example.html

I am having the following issue. Heres hoping I can describe it (its
very visually obvious). While in a submenu, the parent menu(s) retain
their hover state (new bg, new text color, no arrow.) When you mouse
away from the menu, Superfish (nicely) keeps it open for the delay
period. However, this is where the problem is. While Superfish keeps
it open, however, it retains only part of its hover state (keeps the
new bg, loses new text color and no arrow).

I know this is likely because I am adding the text color on the 
and not the . However I have no idea how to achieve the desired
effect.

Additionally, in internet explorer the shadow is not added until the
completion of the opacity animation. Is this a bug or by design?

Any plans on implementing any background animation? I've tried to
implement the fade and other examples here:

http://snook.ca/technical/jquery-bg/

But it and Superfish don't want to play together. I'd simply like my
hover image to fade in and out.

Any help is appreciated for a javascript newbie. I've tried working
around it with CSS alone but can't make it happen. Thanks!

Some bonus bugs/issues for anybody with insight or a work around:

1. Google Chrome Opacity Bug
Try opening the example in Google Chrome. Yikes! The shadow PNG is
displayed as solid white while the opacity is anything but 1. Can't
really subject 2% of visitors to that

2. Firefox (3.0.5 win, havent tested other) weird font issue
Try opening the submenus. The final "m" in "menu item" doesn't paint
until the end of the animation (only when using opacity animation).
This only happens if I use arial or helvetica! I know I can change my
font, but I'd rather not

Thanks again to everyone who works on Jquery. I haven't worked in
webdesign for many years now, but learning Jquery has me up at night
excited and tinkering :)

- Cody


[jQuery] jquery validation

2008-12-19 Thread Baki

How can i add ID="error" instead of a class using jquery.

Also is there a way to say that "you must uncheck the box before
submitting the form.

Im using http://jquery.bassistance.de/validate/demo/milk/ as an
example.

Also is there a way to use jquery to show/hide passwords, i done it
using js but i want to use jquery

I want to add these. Can anyone help


[jQuery] close a function and load...

2008-12-19 Thread Alfredo Alessandrini

Hi,

can I close a jquery function and load a new function with a mouse click?

like this:

on mouse click -> CLOSE "" -> LOAD ""


Thanks,

Alfredo


[jQuery] Re: return value from JQuery ajax custom method

2008-12-19 Thread Mike Alsup

> I'm using jquery ajax within a custom method and try to return its
> result to that original method but I get nothing while it works fine
> if I show it in alert window
>
> here is my code:
> jQuery(document).ready(function() {
> jQuery.Test = function(){
>   jQuery.ajax({
>     type: "POST",
>     url: "WebService.asmx/HelloWorld",
>     success: function(msg) {
>     // alert($("string", msg).text()); //it works fine
>      return $("string", msg).text();   //it doesn't works
>     },
>     error: function(XMLHttpRequest, textStatus, errorThrown) {
>       alert(XMLHttpRequest.responseText); }
>   });
>  };
>  alert(jQuery.Test());//it returns 'undefined'
>  });

This should help:

http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_get_and_use_the_server_response_from_an_AJAX_request.3F


[jQuery] Issue with my dragging code

2008-12-19 Thread Eridius


I have the following code:

//add the ability to drag columns
if(options.draggable === true)
{
$('#' + options.element_id + ' table.cr_data_grid tbody tr th
span').bind('mousemove', function(event)
{
if(self.resize === true)
{
var change = event.pageX - self.mouse_down_start;
$(this).parent().css('width', $(this).parent().width() 
+ change);
self.mouse_down_start = 
event.pageX;$('body').append('mouse down at ' +
event.pageX + ' and this columns width is' + $(this).parent().width());
}
});

$('#' + options.element_id + ' table.cr_data_grid tbody tr th
span').bind('mousedown', function(event)
{
self.resize = true;
//self.resize_id = $(this).parent().slice(0, 1).attr('id');
self.mouse_down_start = event.pageX;$('body').append('mouse 
down at ' +
event.pageX + ' and this columns width is' + $(this).parent().width());
});

$('#' + options.element_id + ' table.cr_data_grid tbody tr th
span').bind('mouseup', function(event)
{
var change = event.pageX - self.mouse_down_start;
$(this).parent().css('width', $(this).parent().width() + 
change);

self.mouse_down_start = 0;
self.resize = false;
//self.resize_id = null;
});
}

And this code works properly for the most part however this is one thing
that is no working properly.  If i drag and try to resize a column past the
minimum width it stop as the minimum width but as i move my mouse if the
opposite direct is will start resize the column, even if my mouse is no
where near the column itself.  Is there a way to confine the resize only if
the mouse if over the handle that does the resizing?
-- 
View this message in context: 
http://www.nabble.com/Issue-with-my-dragging-code-tp21091128s27240p21091128.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: How refresh a div with a link?

2008-12-19 Thread Tolis Christomanos


kidhermes wrote:

Humm I try this with replaceAll():

$('#refreshflickr').click(function(){
  $('#flickrcarousel').replaceAll('#flickrcarousel');
});

it's working, but it reload twince the page...
Any idea how to fix it?

Regards, Dom

  
You have to use return false; in order for the link not to use its 
default action which is to reload the page.


[jQuery] Re: How refresh a div with a link?

2008-12-19 Thread kidhermes


Humm I try this with replaceAll():

$('#refreshflickr').click(function(){
  $('#flickrcarousel').replaceAll('#flickrcarousel');
});

it's working, but it reload twince the page...
Any idea how to fix it?

Regards, Dom

-- 
View this message in context: 
http://www.nabble.com/How-refresh-a-div-with-a-link--tp21070429s27240p21090936.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: problem traversing

2008-12-19 Thread sneaks

thanks karl... sorry bout the extra post... i will be more patient
next time...

On Dec 18, 11:04 pm, Karl Swedberg  wrote:
> Hi,
>
> The selector is choking on the prev() filter. You can't start  
> traversing down within the method that is only looking for a previous  
> sibling. Also, you can simplify things quite a bit by using the  
> ":checked" selector and the .length property.
>
> Try this:
>
>         $('a.quiz-next').bind('click', function() {
>                 if ($(this).prev("ol").find("li.correct :checked").length) {
>                         alert(1);
>                 }
>         });
>
> --Karl
>
> 
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Dec 18, 2008, at 8:05 PM, sneaks wrote:
>
>
>
> > hi i am attempting to make a small quiz and am having a setback... i
> > was hoping someone could provide a hint or solution.
>
> > heres the html:
> >    
> >            
> >                    What is apple in french?
> >                            
> >                                     
> > Pomme de terre
> >                                     
> > Poire
> >                                     
> > Appeaux
> >                                     > name="q1" /> Pomme
> >                            
> >                            Next
> >                    
> >            
> >    
>
> > and the jquery:
>
> >    $('a.quiz-next').bind('click', function() {
> >            if ($(this).prev("ol li.correct  
> > input[type='radio']").attr('checked')
> > =='checked') {
> >                    alert(1);
> >            }
> >    });


[jQuery] Re: .html() and ampersand

2008-12-19 Thread graphic...@googlemail.com

Thanks you. I should have seen this method

On 18 déc, 23:34, real  wrote:
> use .text() if you're looking to return a string of text only rather
> than html. And by value of a label, you do mean what goes in
> here right?
>
> On Dec 18, 5:41 pm, "graphic...@googlemail.com"
>
>  wrote:
> > Hi,
>
> > I use the .html() function to get the value of a label, but when it
> > contains an ampersand (&)  it is converted to & amp ;
>
> > How can I prevent that or is there another way of getting the value of
> > the label ?
>
> > Thanks


[jQuery] Re: (newbie) animate: css-style changes but webpage doesn't

2008-12-19 Thread nachocab

Thanks, you're right.

On Dec 18, 8:01 pm, sad1sm0  wrote:
> you may first need to specify the positioning of the elements as
> absolute or relative. The top style property won't effect the element
> unless the position is first defined.
>
> On Dec 18, 1:24 pm, nachocab  wrote:
>
> > Hi guys,
> > I was testing out animate using firebug and as an example, I'm able to
> > move every anchor in thewww.jquery.compageby typing this in the
> > console:
> > $("a").animate( { "top": "-=10px"}, "slow" );
>
> > But if I go to this other page:http://flowplayer.org/tools/scrollable.html
> > which has jQuery in the header and I type in the same command, I can
> > see the style in the anchors changing in Firebug, but the page stays
> > the same:
>
> > Home
> > Home
> > Home
>
> > What am I missing?
> > Thanks,
>
> > Nacho


[jQuery] [validate] Missing the submit button params

2008-12-19 Thread Jolle

I'm using the validator plugin from bassistance.de/jquery-plugins/
jquery-plugin-validation/.

Lovely and really powerful!
But, my server side logic require the parameters from the submit
button used. And it seems as if Validator doesn't include that when
submitting the form.
The param I need especially is the name of the button.

Is this some setting I can make or does it require tweaking of the
Validator plugin?

HDB
Jolle


[jQuery] Menu under Image show Module

2008-12-19 Thread TiagoRoffé

Hi,

When The menu is very close to an image rotator such Simple image
Rotator, when I select down a submenu i goes under the the imege
rotator, making it impossible to read and select the submenu. Is there
any solution?


[jQuery] create a translate plugin using jQuery

2008-12-19 Thread Rabab CHAKHMOUNE

Hello

I want to create a plugin to translate a site web (translate english
to french)
and i don't know what i need for begin my project to create this
plugin.

any one here can help me?


tkx

""sorry for my english because i speak frensh""

Rabab


[jQuery] return value from JQuery ajax custom method

2008-12-19 Thread Sara

hi everybody
I'm using jquery ajax within a custom method and try to return its
result to that original method but I get nothing while it works fine
if I show it in alert window

here is my code:
jQuery(document).ready(function() {
jQuery.Test = function(){
  jQuery.ajax({
type: "POST",
url: "WebService.asmx/HelloWorld",
success: function(msg) {
// alert($("string", msg).text()); //it works fine
 return $("string", msg).text();   //it doesn't works
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
  alert(XMLHttpRequest.responseText); }
  });
 };
 alert(jQuery.Test());//it returns 'undefined'
 });

Thanks


[jQuery] [livequery] strangeness

2008-12-19 Thread jjshell

Hi,

I'm loading a page reloaded every x seconds is injected into the dom
(#reloaded). The page in question contains links of a certain class
(.loadNewPage). Clicking on a loadNewPage link will load another page
in another div (#edit). Since the links are the result of a page
loaded into the dom, I used livequery to bind their event.

Halas...

There's a "three click" problematic process (.loadNewPage links in
#reloaded)

1. first click does what's expected (the remote page is loaded
correctly and injuected into #edit)
2. second click loads the whole page itself into the  #edit div
3. third click doesn't load nothing, simply follows the link (no AJAX,
a plain HTTP request).

And this, no matter which link I click (it doesn't have to be three
times the same click). If I reload the whole page between two clicks,
it goes fine.

Now if you can figure out what's wrong, much respect...


jQuery code:

$(document).ready(function(){
$("a.load").livequery('click', function(event) {
  var id = $(this).attr('id').substr(1);//the id starts with a
letter for compliancy
  $("div#edit").html('');
  $("div#edit").load("edit.php/id/" + id);
return false;
});
  });



  function load() {
$("div#reloaded").load("reloaded.php", '', autorefresh);//
reloaded.php contains the links with class="loadNewPage"
  }

  function autorefresh() {
setTimeout("load();", 4000);
  }

  $(document).ready(load);

Mark-up:




  
  




:)


[jQuery] Re: problem checking input

2008-12-19 Thread Adrian Gould


Sneaks

I did a small modification to your code and came up with:



What is apple in french?

 Pomme 
de terre
 
Poire
 
Appeaux
 
Pomme

Next




please select your answer and click next



$(document).ready(function(){
$('#quiz ol li:first').show('slow');
});


$('a.quiz-next').bind('click', function() {
if ($ (this ).prev ("ol ").children ("li").children("input[type='radio']:checked").attr("value")=="1") {
$("#result").text("correct");
} else {
$("#result").text("wrong");
}
});



This works.

what you can do is set the value to be "0" for incorrect and "1" for  
correct and test for that.



Ady

On 19/12/2008, at 11:30 AM, sneaks wrote:



http://paste.pocoo.org/show/95986/

simple quiz function if the radio in li.correct is checked, then the
user has selected the correct answer from a multiple choice set.

right now i am getting a true no matter which radio is selected in the
group

thanks for any help in advance thhis one has been bugging me for a
while now!

j




Adrian Gould
Adrian dot J dot Gould at gmail dot com



[jQuery] Re: ajaxForm returns error in IE7

2008-12-19 Thread deep_illusion

Thanks for the post it was really helpful.

On Dec 10, 9:28 am, "Brian J. Cohen"  wrote:
> Okay, I found a post that the plugin author responded to, that details
> the 
> problem:http://groups.google.com/group/jquery-en/browse_thread/thread/e52fe0b...
>
> Apparently he used certain reserved words that you must avoid in your
> form element names, like "action" and "method". I had a hidden element
> named "action" that I had to rename, and it started working in IE7.
>
> On Dec 8, 1:14 am, cjokomay  wrote:
>
> > I am using ajaxForm to upload an excel file and then display whether
> > or not it uploaded successfully. The following jQuery code works fine
> > in Firefox, but when I try to run it in IE7 it fails. The beforeSubmit
> > function is executed but then it craps out after that with the
> > following error: "Object doesn't support this property or method." The
> > form is generated dynamically, hence the reason for livequery.
>
> > $("#taskplans form.upload-form").livequery(function() {
> >         var h3 = $("#taskplans h3");
> >         var content = $("#taskplans div.content");
>
> >         $(this).ajaxForm({
> >                 beforeSubmit: function() {
> >                         h3.append(" " + loaderImg);
> >                 },
> >                 error: function(data) {
> >                         h3.find("img").remove();
> >                         content.html(data);
> >                 },
> >                 success: function(data) {
> >                         h3.find("img").remove();
> >                         content.html(data);
> >                 }
> >         });
>
> > });


[jQuery] IE8 - show()

2008-12-19 Thread chaoszcat

Hi

Was doing a site lately.
When I test it on IE8, my navigation dropdown just won't work.
(Smoothly on Safari, Firefox, IE6, IE7)


So I run the jquery.com/test on IE8 (8.0.6001.18241), and it shows
error:

59. core module: show() (7, 8, 15) - In red color

I wonder if it's the event.show() problem?

You can check it with your IE8 at http://de.cwmao.net/celc/
Or you can view the script here: http://de.cwmao.net/celc/js/main.js

I doubt is the jquery core problem
Hope someone alighten me? ><

CS


[jQuery] Re: Activate tab then scroll to an element

2008-12-19 Thread Gordon

Does a tab have some kind of "After make visible" event handler I can
wait for?

On Dec 18, 4:16 pm, Gordon  wrote:
> I've got a jQuery script that makes links open in a new JavaScript
> window, to show a page of content regarding jargon.  However, that
> content is now being moved into a UI tab in the current page,
> instead.  I want to modify my script to activate the tab and then jump
> down to an element with an ID that corresponds to the heading for the
> jargon section I want to show.  I can activate the tab okay, but I
> just can't get the browser to jump to the content I want to
> highlight.  Here's the function as it currently stands:
>
>         self.jargonWindow               = function (url)
>         // Jargon popup window
>         {
>                 //window.open (url, 'Jargon',
> 'width=647,height=680,scrollbars=yes,resizable=yes').focus ();
>                 self.tabSet.tabs ('select', '#jargon-buster');
>                 var target              = url.split ('#').pop (),
>                         offset          = $('#' + target).offset ();
>                 $(document).scrollTop (offset.top);
>                 return (false);
>         };
>
> The function triggers the jargon tab, then gets the fragment (the part
> after the # character) and tries to scroll to an element with that
> ID.  The offset value I get for the target element, however, doesn't
> seem to be correct.  I arranged the function so that the offset
> request happened after the tab activation, and when I enter the
> scrollTop command into the FireBug console while the jargon tab is
> being displayed the browser jumps to it as expected.  This leads me to
> suspect that the tab doesn't really become visible until after the
> function has run, resulting in an incorrect for offset ().
>
> Has anyone got an idea for getting around this problem?


[jQuery] Re: Best way to do this for multiple input fields?

2008-12-19 Thread Carlo Landmeter
Hi,

Thanks for your reply.

The problem isn't how to get the the content out of the input fields.

I have multiple input fields which each have a span which i use for .click.
I can do what i want for one field and span with the below code.
If i would like to do this for 10 fields i would have to repeat this code
below 10x.
Isn't there an easier way to loop this code with jquery just like i would do
with php?

I've tried to use .each but i couldn't find out how I could properly replace
input#item0 with a variable to loop over it.
I tried http://docs.jquery.com/Utilities/jQuery.each#examples and tried to
create a var like this:

var foobar = 'input#item' + i;

This didn't seem to do the trick for all vars in my code below.

Does somebody have an example of how i could do this?

Thx,

Carlo


On Fri, Dec 19, 2008 at 2:14 AM, MorningZ  wrote:

>
> I'm not 100% clear on what you are trying to accomplish
>
> but you can select items by what an attribute "starts with"
>
> http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
>
> so
>
> $("input[id^='item']")
>
> would get all your items regardless of how many there are
>
>
>
> On Dec 18, 5:21 pm, "Carlo Landmeter"  wrote:
> > Hi,
> >
> > I'm trying to create a form with multiple input fields. These fields
> should
> > have a button to be able to check its content with .ajax.
> > I am able to create this function for a single field, but i don't know
> what
> > the best way would be to do it for multiple input fields:
> >
> > input#item0
> > input#item1
> > input#item2
> > input#item3
> > .
> >
> > What would be the best way to create this with jquery so i can adjust a
> > single var to create if for x items?
> >
> > Thx,
> >
> > Carlo
> >
> > $(document).ready(function(){
> >   $("span#check0").click(function(event){
> > $("input#item0").ajaxStart(function(){
> >   $(this).addClass("loading");
> > });
> > $("input#item0").ajaxStop(function(){
> >   $(this).removeClass("loading");
> > });
> > $.ajax({
> >   type: "GET",
> >   url: "checkitem.php",
> >   data: {
> >   'sn': $('input#item0').val()},
> >   'success': function(msg) {
> > if (msg == 'OK')
> > {$("input#item0").removeClass("nowarranty").addClass("warranty");}
> > if (msg == 'NG')
> > {$("input#item0").removeClass("warranty").addClass("nowarranty");}
> >   },
> >   'error': function() {alert('Error: please try again');}
> > });
> >   });
> >
> > });
>


[jQuery] Re: Make list of unique json data?

2008-12-19 Thread alpha tester


Thanks very much for this Brian - got my head round it now!



brian-263 wrote:
> 
> 
> On Thu, Dec 18, 2008 at 4:49 AM, alpha tester 
> wrote:
>>
>>
>> Hmmm...  struggling to read from this new dataset using the code provided
>> -
>> can someone point out the stupidity in the following code:
>>
>> 
>> 
>> 
>> var myData =
>> { records : [
>> { CATEGORY : "Sport", TITLE : "The world of sport", LINK:
>> "http://test.com";
>> },
>> { CATEGORY : "Sport", TITLE : "More sport", LINK: "http://test.com"; },
>> { CATEGORY : "News", TITLE : "News views", LINK: "http://test.com"; },
>> { CATEGORY : "News", TITLE : "Some more news", LINK: "http://test.com"; },
>> { CATEGORY : "Events", TITLE : "Big Events", LINK: "http://test.com"; },
>> { CATEGORY : "Events", TITLE : "Small Events", LINK: "http://test.com"; },
>> ]};
>> 
>> 
>> 
>> 
>> 
>> 
>> test
>> 
>> 
>>
>>