Re: [jQuery] Tabs plugin feature request
ashutosh bijoor schrieb: Hi Klaus I've been playing around with your tabs plugin, and would very much like it if you could add a callback facility. ie, when the tab is changed, i'd like a function to be called in the scope of the active tab. I can make this change myself, but dont know whether i have the latest version. does the URL quoted below contain the latest version? Regards Ashutosh This can be very useful... I will add that soon! -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Tabs plugin feature request
-- Larry Garfield On Thu, August 17, 2006 3:19 pm, Klaus Hartl said: ashutosh bijoor schrieb: Hi Klaus I've been playing around with your tabs plugin, and would very much like it if you could add a callback facility. ie, when the tab is changed, i'd like a function to be called in the scope of the active tab. I can make this change myself, but dont know whether i have the latest version. does the URL quoted below contain the latest version? Regards Ashutosh This can be very useful... I will add that soon! -- Klaus Use case here: You have n tabs. Each one is not actually loaded. When you switch to it, however, a callback fires that Ajax-loads the contents of that tab, possibly skipping that if it's already been loaded. Taing it a step further, an on-leaving callback would let you auto-submit a form in a given tab as soon as you tab away from it. Instant-save tabbed forms for the cost of 2 callbacks. Sorry, I just put 2 and 2 together and got a very cool 10. :-) --Larry Garfield ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Tabs plugin feature request
Hi Larry! You have n tabs. Each one is not actually loaded. When you switch to it, however, a callback fires that Ajax-loads the contents of that tab, possibly skipping that if it's already been loaded. Sorry, I just put 2 and 2 together and got a very cool 10. :-) Sounds interessting. But if I get it right, those tabs wouldn't be unobtrusive any more, right? -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Tabs plugin feature request
On Thu, August 17, 2006 3:55 pm, Jörn Zaefferer said: Hi Larry! You have n tabs. Each one is not actually loaded. When you switch to it, however, a callback fires that Ajax-loads the contents of that tab, possibly skipping that if it's already been loaded. Sorry, I just put 2 and 2 together and got a very cool 10. :-) Sounds interessting. But if I get it right, those tabs wouldn't be unobtrusive any more, right? -- Jörn True, if you go with dynamic loading of tab content then it doesn't degrade nicely. That's a trade-off with any dynamic-content-loading system. But if you don't do that, then the tab system itself would still degrade nicely. --Larry Garfield ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Tabs plugin feature request
Jörn Zaefferer schrieb: Hi Larry! You have n tabs. Each one is not actually loaded. When you switch to it, however, a callback fires that Ajax-loads the contents of that tab, possibly skipping that if it's already been loaded. Sorry, I just put 2 and 2 together and got a very cool 10. :-) Sounds interessting. But if I get it right, those tabs wouldn't be unobtrusive any more, right? -- Jörn Yes, such tabs wouldn't be accessible anymore, and not unobtrusive either because you would have useless links hanging around, pointing to some empty divs if JavaScript is disabled. Therefore I wouldn't go so far and implement Ajax calls on tab click. I cannot see the use here, to me it's like using Ajax for the sake of Ajax. The user would even have to wait for the content to be loaded (first click), and that is not what I call very usable. Nonetheless, with the callback mechanism it would be pretty easy to implement such a function and pass it as callback. But this should not be part of the plugin in my eyes. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Tabs plugin feature request
ashutosh bijoor schrieb: Hi Klaus I've been playing around with your tabs plugin, and would very much like it if you could add a callback facility. ie, when the tab is changed, i'd like a function to be called in the scope of the active tab. I can make this change myself, but dont know whether i have the latest version. does the URL quoted below contain the latest version? Regards Ashutosh I assume you would like to have the possibility to have different callbacks for each tab or alternatively one function for all or even both together? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/