[jQuery] jQuery project works fine in IE6, but bombs in FF2

2008-09-04 Thread Phonedude

My first jQuery project has me puzzled.  I have a page
http://twinflamingos.com/chris/chris.htm that throws an error when
any of the menu headers is clicked in Firefox.  In IE6 the drop-down
works
perfectly, but FF2 doesn't work and puts an error in the log.
Specifically it says:

Error: [Exception... Could not convert JavaScript argument
nsresult: 0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)  location: JS
frame :: http://jqueryjs.googlecode.com/files/jquery-1.2.6.js ::
anonymous :: line 871  data: no]
Source File: http://jqueryjs.googlecode.com/files/jquery-1.2.6.js
Line: 871

I am relatively new to javascript and brand new to jQuery so this
information doesn't help me much.  Is this a bug?  Or is my coding
simply bad?  My html and css both validate at W3C.

If this is the wrong forum/list/group I apologize -- please direct me
to the proper place.

Thanks,

Larry Ludwick




[jQuery] Re: jQuery project works fine in IE6, but bombs in FF2

2008-09-04 Thread Phonedude



On Sep 4, 11:31 am, John Resig [EMAIL PROTECTED] wrote:
 Try changing this line:

 $(this.children).show();

 to:

 $(this).children().show();

 The first uses a property that's not available in Firefox - whereas
 the second uses a jQuery method that works in all browsers.

 --John


Absolutely perfect.  Thank you very much for your kind help.

It works fine in both browsers now.

Larry