Forget to mention that the var tab contain the page name ex : mypage.html Thanks
On 7 juin, 22:37, keny <[EMAIL PROTECTED]> wrote: > Hi thanks for the answer > > I whant to load the link in the function in the current panel i dont > whant every link to be loaded in panel so your first function was not > for me, i try the next one that work but this function was reloaded > the tab in the panel so i came whit > this function that work : > > function loadTab(tab) { > var tab ; > > $('#container-8').tabs({ > load: function(ui) { > > $(ui.panel).load(tab); > > } > > }); > } > > Ist work the link load but the problem is that no more panel work > after. Any idea ? > > Thanks for helping > > On 7 juin, 03:16, Klaus Hartl <[EMAIL PROTECTED]> wrote: > > > > > Forgot to mention that you need to use the latest version, from jQuery > > UI RC1 that is. > > > --Klaus > > > On 7 Jun., 09:15, Klaus Hartl <[EMAIL PROTECTED]> wrote: > > > > What exactly do you want to achieve? If you try to automatically load > > > content from links inside a tab panel into the panel itself, replacing > > > the content, try this: > > > > $('#example').tabs({ > > > load: function(ui) { > > > $('a', ui.panel).click(function() { > > > $(ui.panel).load(this.href); > > > return false; > > > }); > > > } > > > > }); > > > > If you're just want to reload the content of the given tab, try this: > > > > function loadTab(tab) { > > > $('#example').tabs('load', tab); > > > > } > > > > Before you can use that you need to have initialized tabs once of > > > course: > > > > $('#example').tabs(); > > > > --Klaus > > > > On 5 Jun., 02:55, keny <[EMAIL PROTECTED]> wrote: > > > > > Hi thanks for reading > > > > > I am trying to load a link in a tab with this function with no > > > > result :-( > > > > > function loadTab(tab){ > > > > var tab; > > > > var $tabs = $('#container-8').tabs; > > > > var selected = $tabs.tabsSelected(); > > > > $tabs.tabsLoad(selected,tab); > > > > > } > > > > > </script> > > > > > The tab variable contain the page to load but noting happen what wrong > > > > with that ? > > > > > Thanks you very much !!!- Masquer le texte des messages précédents - > > > - Afficher le texte des messages précédents -- Masquer le texte des > > messages précédents - > > - Afficher le texte des messages précédents -