views:

136

answers:

2

Hi All. Im wanting to develop an entirely ajax back end for a website im developing, and im looking at using jquery ui. The tabs widget looks like it could be useful for my menu, however i want to know if theres 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

+1  A: 

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:

aSeptik
A: 

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 :)

Aviatrix