On Jan 22, 8:55 pm, Diego <[EMAIL PROTECTED]> wrote: > argh, its works.. but.... i have a new problem > my old function, with tabhref when i click in other tab. > > $(function() { > var $tabs = $('#container ul').tabs(3, { > click: function() { > $tabs.tabsHref(3, '/Normativa/jsp/VerBuscador.do'); > } > > }); > }); > > The new Function, with cache false, and the calendar initialize in the > load of the tab, but now my tabshref function dont change the url > It's strange but the cache without the load and the load function > without the cache make the tabhref fail too > > $(function() { > var $tabs = $('#container ul').tabs(3,{ cache: false }, { > click: function() { > $tabs.tabsHref(3, '/Normativa/jsp/VerBuscador.do'); > }}); > > $tabs.tabs({ > load: function() { > $('input.date-pick').datePicker(); > } > > }); > }); > > can someone help me how write right this function?
Diego, you're again initializing tabs twice - I'm sure I pointed you to that problem already in another, former thread. The tabs then are using the options from the latest initialization, thus the click callback is gone. Please pass in both options in one call: var $tabs = $('#container ul').tabs(3, { click: function() { $tabs.tabsHref(3, '/Normativa/jsp/VerBuscador.do'); }, load: function() { $('input.date-pick').datePicker(); } }); In addition you were passing in two objects to the tabs method, thus the second one with the click callback - being the third argument to the function - wouldn't have been taken into account at all anyway. The cache option is false by default, thus you can just omit it. --Klaus