[jQuery] Re: problem with document ready function

2008-12-04 Thread firstarsbrnwhite
Think it is possible to make my menu close the previous tab when a new one is opened using Jquery? This was only having one open at a time. On Nov 25, 7:09 pm, ricardobeat [EMAIL PROTECTED] wrote: that's odd. Try using a minified (instead of packed) version of your galleria.js On Nov 25,

[jQuery] Re: problem with document ready function

2008-12-04 Thread ricardobeat
Of course: $(document).ready(function(){ var subs = $('.menu ul ul'); subs.hide(); $('.menu ul li a').click(function(){ subs.hide(); $(this).next('ul').toggle(); }); }); On Dec 4, 10:32 am, firstarsbrnwhite [EMAIL PROTECTED] wrote: Think it is possible to

[jQuery] Re: problem with document ready function

2008-12-04 Thread firstarsbrnwhite
ricardo your the man. thank you so much.

[jQuery] Re: problem with document ready function

2008-12-04 Thread firstarsbrnwhite
works great but now with the subs.hide() the toggle on the category no longer works :(

[jQuery] Re: problem with document ready function

2008-11-25 Thread firstarsbrnwhite
ricardobeat, thank you very much for your response. This is obviously my first time working with jquery. I have translated your code to my page with some unexpected results. When I click on any .menu ul li a all the page does is hide the image in my main gallery which is also ran by jquery. I

[jQuery] Re: problem with document ready function

2008-11-25 Thread ricardobeat
Hi, Try removing all the comments in the javascript, Google Groups adds line breaks that can cause errors. Also I forgot to wrap 'this' in jQuery: var subs = $('.menu ul ul'); subs.hide(); $('.menu ul li a').click(function(){ subs.hide();

[jQuery] Re: problem with document ready function

2008-11-25 Thread firstarsbrnwhite
Thanks again richardo, here is the final script that works great $(document).ready(function(){ var subs = $('.menu ul ul'); subs.hide(); $('.menu ul li a').click(function(){ $(this).next('ul').toggle(); }); });

[jQuery] Re: problem with document ready function

2008-11-25 Thread firstarsbrnwhite
only problem is upon toggling of this menu it also hides the photos in my jquery gallery --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups jQuery (English) group. To post to this group, send email to

[jQuery] Re: problem with document ready function

2008-11-25 Thread firstarsbrnwhite
except on IE 6 and 7. FF and Safari both hide the main photo in the gallery when clicking on collapsing menu

[jQuery] Re: problem with document ready function

2008-11-25 Thread ricardobeat
that's odd. Try using a minified (instead of packed) version of your galleria.js On Nov 25, 6:16 pm, firstarsbrnwhite [EMAIL PROTECTED] wrote: except on IE 6 and 7. FF and Safari both hide the main photo in the gallery when clicking on collapsing menu

[jQuery] Re: problem with document ready function

2008-11-24 Thread firstarsbrnwhite
I removed toggleMenu.addEvent(window, 'load', function(){toggleMenu.init ('menu','hidden');}); and now works as I want it to in FF3

[jQuery] Re: problem with document ready function

2008-11-24 Thread ricardobeat
You don't need any of that stuff if you have jQuery: 1. it handles events for you 2. it selects element with CSS3 selectors 3. built-in function for hide/show and effects This (not tested) should do the same as your code: $(document).ready(function(){ var subs = $('#container ul ul');