JQuery UI Tabs, Change tab URL (JQuery 1.10+) -


is there way modify link tab in jquery ui through jquery/javascript?

sample problem

a tab have url "http://thanksforyourhelp/greatly/appreciated/"

if form submitted on tab, data written database. response gives id of row added database.

next time specific tab visited link should

'http://thanksforyourhelp/greatly/appreciated/id'  

where id known since response form (ajax here well) sent back. when response came i've reload current tab url having id in it.

prior jquery 1.10. can this

$("#tabs").tabs("url", index, url); 

how can in jquery ui 1.10+. url method removed in jquery 1.10?

do in complete of form submit. change url of active tab , reloads tab.

var tabs = $("#tabs"); var currenttabindex = tabs.tabs("option", "active"); var tab = $(tabs.data('uitabs').tabs[currenttabindex]); tab.find('.ui-tabs-anchor').attr('href', "http://thanksforyourhelp/greatly/appreciated/id"); // if cached initially. remove cache tab.data( "loaded", false); tabs.tabs("load", currenttabindex); 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -