How can one change the url for a jquery ui tab added via 'add' and 'tabTemplate' functionality? -


i might making more difficult need in need of assistance. have jquery ui tabs added via add functionality. these tabs via ajax.

i have tabtemplate set follows on initial addition of tabs.

tabtemplate: "<li><a href='#{href}'>#{label},/a><li>" 

and add tab functionality done via

$tabs.tabs('add', 'http://thanksforyourhelp/greatly/appreciated/, some_title_var) 

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' id known since response form (ajax here well) sent back. pre-populate forms on page based off data in database "id."

i've looked @ example here, href id tab in question (and not url). actual url stored?

the tab looks this.

<a href="#ui-tabs-6">new</a> 

i have tried changing href on that, upon clicking tab content loaded without ajax instead of within tab desired. might doing wrong here? help.

edit: removed edits references of no longer existent urls.

i haven't worked ajax-powered tabs much, think want url method:

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

change url ajax (remote) tab loaded. specified url used subsequent loads. note can not change url existing remote tab method, turn in-page tab remote tab.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -