[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

jquery tabs call

I am using jquery tabs.  How can I call a page and open that tab.  I tried www.site.com/page.html#tabs-2 but that did not work.  Is there a way I can do this?

Thank you
  • 2
1 Solution
Aijaz ChauhanCommented:
i don't find any Jquery tab in given link

have you used Jquery UI ???   if not please refer http://jqueryui.com/tabs/

thank you
solsticeintAuthor Commented:
Alexandre SimõesManager / Technology SpecialistCommented:
It works.
It you go directly to the following url the page will load with the third tab open:
Alexandre SimõesManager / Technology SpecialistCommented:
I believe your problem is that you're changing the url hash and expecting the tab to change and this won't work.

If you want to handle that you need to write some javascript code handling the window.onhashchange event: https://developer.mozilla.org/en-US/docs/Web/API/window.onhashchange?redirectlocale=en-US&redirectslug=DOM%2Fwindow.onhashchange

Note that older browsers don't support this so the fallback must be an ugly setInterval instruction to keep polling for hash changes.

Another option is to use jQuery BBQ or similar kind of plugin that will do the fallback browser support for you.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now