How can I make script direct link to a tab content? E.g. a page direct link into tab 2 at http://jqueryui.com/demos/tabs/ instead of tab 1.
| SitePoint Sponsor |
How can I make script direct link to a tab content? E.g. a page direct link into tab 2 at http://jqueryui.com/demos/tabs/ instead of tab 1.
Bored with reading SEO text article? Visit our blog,
we collected interesting SEO Infographic.
We are local SEO company in Kuala Lumpur, Malaysia.
Depends on how the tabs are set up, but for that example: http://jqueryui.com/demos/tabs/#tabs-2
Hi Immerse, thanks to reply.
How about those tab content which is not support anchor link? My site gen-education.com/preview/page/gen-buddies-uk.html have problem to link to tab content, each time when I click the back button, it will fall into landing tab, instead of custom tab content.
Bored with reading SEO text article? Visit our blog,
we collected interesting SEO Infographic.
We are local SEO company in Kuala Lumpur, Malaysia.


Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
I am the site owner, how can I add the call back function? I did try javasript back to history function, but its seem like have limit function on frameset.
Bored with reading SEO text article? Visit our blog,
we collected interesting SEO Infographic.
We are local SEO company in Kuala Lumpur, Malaysia.


Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
When I click on below back button, I cant back to C tab content, it keep back to A tab.
gen-education.com/preview/cms/index.php?option=com_content&view=article&id=14
My back button insert the following code: #tab_3
Bored with reading SEO text article? Visit our blog,
we collected interesting SEO Infographic.
We are local SEO company in Kuala Lumpur, Malaysia.


Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript


Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
Sorry I wasn't clear enough, I am not referring to the top back button at the browser. But I am referring the green back button on the page itself, I need it can be link back to Tab C
gen-education.com/preview/cms/index.php?option=com_content&view=article&id=14
Bored with reading SEO text article? Visit our blog,
we collected interesting SEO Infographic.
We are local SEO company in Kuala Lumpur, Malaysia.


Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
Hi Paul, I cant provide it because I grab it from friend template. Origin template: mcare.org.my/test/webbiemy/tab.html
Bored with reading SEO text article? Visit our blog,
we collected interesting SEO Infographic.
We are local SEO company in Kuala Lumpur, Malaysia.


Would you consider using the official jQuery tabs, which are designed to work in the way that you want to use them here.
For example, using the link http://jqueryui.com/demos/tabs/#tabs-2 it automatically shows that tab when the page loads.
Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
Thank you Paul, I will consider that, as it is well support. Fixing a code can be a painful job. Thanks again.
Bored with reading SEO text article? Visit our blog,
we collected interesting SEO Infographic.
We are local SEO company in Kuala Lumpur, Malaysia.


If you were going to support the pre-existing tabs, it would mean running some code after the page has finished loading that checks the fragment identifier of the page, and if there is something there it would then call the tab-based code to change the displayed tab to the one that is referenced in the url.
Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
I found a solution at zachstronaut.com/posts/2009/06/08/jquery-ui-tabs-fix.html
I added the following code to gen-education.com/preview/page/gen-buddies-uk.html#tab_3
Code:<script type="text/javascript"> $(function(){ // Tabs $('#tabs-gallery').tabs-gallery(); $('#tabs-gallery ul li a:active').click(function () {location.hash = $(this).attr('href');}); //hover states on the static widgets $('#dialog_link, ul#icons li').hover( function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); } ); }); </script>
Bored with reading SEO text article? Visit our blog,
we collected interesting SEO Infographic.
We are local SEO company in Kuala Lumpur, Malaysia.
Bookmarks