I could make it harder than I need, but I need help. I have some jquery ui tabs that are added via the add function. these tabs via ajax.
I have a tabTemplate as below when initially adding tabs.
tabTemplate: "<li><a href='#{href}'>#{label},/a><li>"
And tab bookmark functionality is done through
$tabs.tabs('add', 'http://thanksforyourhelp/greatly/appreciated/, some_title_var)
If a form is presented on this tab, the data is written to the database. The response gives the identifier of the row added to the database.
The next time a particular tab is visited, the link should actually be "http: // thanksforyourhelp / much / appreciated / ID", where the identifier is now known, since the response from the form (ajax here also) sent it back. This will pre-populate the forms on the page based on the data in the database for "ID".
I reviewed the example here , but my href is the identifier for the corresponding tab (not the URL). Where is the actual URL stored?
The bookmark is as follows.
<a href="#ui-tabs-6">new</a>
I tried changing href on this, but by clicking on the tab, the content is loaded without ajax, and not inside the tab, as desired. What can i do wrong? Thank you for your help.
Edit: Removed changes with links to already missing URLs.