[jQuery] Re: Tabs: page jumps to top when tab changes

2009-08-05 Thread chris_huh
am using: $(function() { $("#tabs").tabs().tabs('rotate', 5000); }); Thanks On Aug 2, 1:02 pm, chris_huh wrote: > duh. thanks. > > but i also realise it is missing the auto rotate thing that could be > set up using the tabs functio

[jQuery] Re: Tabs: page jumps to top when tab changes

2009-08-02 Thread chris_huh
; > On Sun, Aug 2, 2009 at 12:42 PM, chris_huh wrote: > > > I tried that and it didn't work. > > > The second code i pasted above works (doesn't jump to top of page) but > > it loses the fading ability. > > Where as the first bit of code has the fadign bu

[jQuery] Re: Tabs: page jumps to top when tab changes

2009-08-02 Thread chris_huh
s('active'); > $(this).parent().addClass('active'); > var currentTab = $(this).attr('href'); > $('#tabs div').hide(); > $(currentTab).show(); > > }); > }); > > just curious through if any expert out there can explain the difference > betwee

[jQuery] Re: Tabs: page jumps to top when tab changes

2009-08-02 Thread chris_huh
x27;active'); var currentTab = $(this).attr('href'); $('#tabs div').hide(); $(currentTab).show(); return false; }); }); and that works but i lose the fade effect and am not sure where to put it back in. On Jul 30, 7:33 pm, kalyan Chatterjee

[jQuery] Re: Tabs: page jumps to top when tab changes

2009-07-29 Thread chris_huh
ed, Jul 29, 2009 at 5:50 PM, chris_huh wrote: > > > At the moment my page will jump to the top (because of the #) whenever > > a new tab is clicked or when it automatically rotates to one. > > > Is there a way to stop this, maybe using an onclick event instead of > > relying on the #tabs links?

[jQuery] Re: Tabs: page jumps to top when tab changes

2009-07-29 Thread chris_huh
ed, Jul 29, 2009 at 5:50 PM, chris_huh wrote: > > > At the moment my page will jump to the top (because of the #) whenever > > a new tab is clicked or when it automatically rotates to one. > > > Is there a way to stop this, maybe using an onclick event instead of > > relying on the #tabs links?

[jQuery] Tabs: page jumps to top when tab changes

2009-07-29 Thread chris_huh
At the moment my page will jump to the top (because of the #) whenever a new tab is clicked or when it automatically rotates to one. Is there a way to stop this, maybe using an onclick event instead of relying on the #tabs links?