Solved

jquery tabs call

Posted on 2013-12-08
4
183 Views
Last Modified: 2014-02-03
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
0
Comment
Question by:solsticeint
  • 2
4 Comments
 
LVL 2

Expert Comment

by:Aijaz Chauhan
ID: 39705479
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
0
 

Author Comment

by:solsticeint
ID: 39705485
0
 
LVL 30

Expert Comment

by:Alexandre Simões
ID: 39705629
It works.
It you go directly to the following url the page will load with the third tab open:
http://solsticeinteractive.net/CSUMB/Websites/esl_main/site/acl_course_descriptions.html#tabs-3
0
 
LVL 30

Accepted Solution

by:
Alexandre Simões earned 500 total points
ID: 39705645
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.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now