[jQuery] Re: Synchronized 2 ajax calls

2009-02-22 Thread major
ction (){ >      $.ajax({ >        url: "second_url" >        , type: "post" >        , complete: function (){ >           alert('done with 2nd call!); >        } >      }); >    } > > }); > > -Dan > > On Sun, Feb 22, 2009 at 7:37 A

[jQuery] Synchronized 2 ajax calls

2009-02-22 Thread major
I have ajax call which implemented in Dojo. I need some JQuery mechanism which allow 1 ajax call to run, only after the former call has finished. I need such mechanism, since there is a known bug in IE which cannot run 2 ajax calls simultaneously.

[jQuery] Re: Data returned (from a JQuery function) with the $ character cause to error in IE

2009-02-19 Thread major
t;. > > $("#field").text(); returns a string, like: "$21.3". (the data is > >price). > > I guess the $ character (of "$21.3") make JQuery confused as it thinks > > this is a function. > > BUT, when I write something like this: > > var h

[jQuery] Re: Data returned (from a JQuery function) with the $ character cause to error in IE

2009-02-19 Thread major
#field is: $ 25.00 On Feb 19, 5:04 pm, "Richard D. Worth" wrote: > Is #field a text input? Perhaps you want .val() instead of .text() ? > > - Richard > > On Thu, Feb 19, 2009 at 8:56 AM, major wrote: > > > assume the following code: > >

[jQuery] Data returned (from a JQuery function) with the $ character cause to error in IE

2009-02-19 Thread major
, like: "$21.3". (the data is price). I guess the $ character (of "$21.3") make JQuery confused as it thinks this is a function. BUT, when I write something like this: var htmlOut = '' + $("#field").text(); + '' No error occurs! What may cause this bug in IE to happen? Thanks,Major

[jQuery] Re: Not "current" clicked on menu items stay selected in IE but not in FF

2008-07-21 Thread major
Correction: the example can be found at http://www.my411family.com/ On Jul 21, 11:46 am, major <[EMAIL PROTECTED]> wrote: > In IE, when you click on a top navigation item, that menu item stays > selected as though it was the "current" item, indicating the current > page.

[jQuery] Not "current" clicked on menu items stay selected in IE but not in FF

2008-07-21 Thread major
In IE, when you click on a top navigation item, that menu item stays selected as though it was the "current" item, indicating the current page. This only happens in IE but not in Firefox. http://www.my411family.com/indexTTest.php Please help me figure this out. Thanks in advance.

[jQuery] Not "current" clicked on menu items stay selected in IE but not in FF

2008-07-21 Thread major
In IE, when you click on a top navigation item, that menu item stays selected as though it was the "current" item, indicating the current page. This only happens in IE but not in Firefox. The only way for the non-current nav item to revert back to the same background color as the rest of the non

[jQuery] Not "current" clicked on menu items stay selected in IE but not in FF

2008-07-21 Thread major
In IE, when you click on a top menu item, that menu item stays selected as though it was the "current" item, indicating the current page. This only happens in IE but not in Firefox. http://www.my411family.com/indexTTest.php Please help me figure this out. Thanks in advance.

[jQuery] Setting/removing CSS classes

2008-06-12 Thread Kevin Major
This is related to my past DOM traversal question from a day ago. Long story short, I have a series of checkbox inputs within table cells. Upon a click event, the input, its containing cell, and the containing cell's next sibling should change CSS classes. According to Firebug, the class names a

[jQuery] Re: DOM traversal -- need both parent node and siblings

2008-06-11 Thread Kevin Major
elf().addClass("inactive"); > > } > > should do it. > > On Jun 11, 10:26 am, Kevin Major <[EMAIL PROTECTED]> wrote: > > > > > Hello everyone, > > > I'm currently in a bit of a bind.  I have a checkbox that's within a > > table cell

[jQuery] DOM traversal -- need both parent node and siblings

2008-06-11 Thread Kevin Major
Hello everyone, I'm currently in a bit of a bind. I have a checkbox that's within a table cell. I want it so when the input is clicked, the parent table cell AND its siblings change their classes. I can get to the parent element, but how would I attach this functionality to its siblings? Righ