Reputation: 41972
I want to develop an entirely ajax backend for a website I'm developing, and I'm looking at using jQuery UI. The tabs widget looks like it could be useful for my menu, however, I want to know if there's a way to load a specific tab dynamically. So basically, if someone entered the URL mysite.com/tab1 it would open the first tab, and tab2 would open the second etc.
Can anyone point me in the right direction?
Thanks
Upvotes: 1
Views: 899
Reputation: 2852
Try setting a name property on the tab link ( like so <a name="tab-1" > </a>
and then yoursite.com/#tab-1 it will activate your tab :)
Upvotes: 0
Reputation: 31173
UPDATED
There is no reason why it should not work! ;-)
Ahh! what you are looking for is called Hijax with support for the browser's back/forward navigation buttons and bookmarking. Enhance comparable DHTML driven links as well.
try this:
History/Remote - jQuery plugin solution for hijaxing links and enabling history - http://stilbuero.de/jquery/history/index.html
And also read this:
Upvotes: 1