Solved

jquery tabs call

Posted on 2013-12-08
4
191 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
 
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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

729 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