Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
How to dynamically set default tab via page anchor in URL
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
beausmith  
View profile  
 More options Aug 14 2007, 5:39 pm
From: beausmith <beausm...@gmail.com>
Date: Tue, 14 Aug 2007 21:39:54 -0000
Local: Tues, Aug 14 2007 5:39 pm
Subject: [Tabber] How to dynamically set default tab via page anchor in URL
How to dynamically set default tab via page anchor in URL

1. Add the following javascript as the first code in the tabberObj
function in tabber.js

    if ( window.location.hash && window.location.hash.match( /^#/ ) )
{
        var el =
document.getElementById(window.location.hash.substr(2));
        if (el) {
            el.className = "tabbertab tabbertabdefault"
        }
    }

2. Use by placing id on tab you wish to target:

    <div id="screenshots" class="tabbertab">

3. Access via page anchor with underscore (underscore crucial
otherwise page will scroll in browser):

    http://domain.com/path/to/page.html#_screenshots

We're using this on http://www.movabletype.com which should be
launched in the next 24 hours.

Enjoy!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fitz  
View profile  
 More options Aug 14 2007, 8:47 pm
From: Fitz <patmf...@gmail.com>
Date: Wed, 15 Aug 2007 00:47:27 -0000
Local: Tues, Aug 14 2007 8:47 pm
Subject: Re: How to dynamically set default tab via page anchor in URL
On Aug 14, 5:39 pm, beausmith <beausm...@gmail.com> wrote:

> How to dynamically set default tab via page anchor in URL [...]

Nicely done, beausmith. I'll have to roll that into the code.
-fitz

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
beausmith  
View profile  
 More options Aug 15 2007, 1:00 pm
From: beausmith <beausm...@gmail.com>
Date: Wed, 15 Aug 2007 17:00:28 -0000
Local: Wed, Aug 15 2007 1:00 pm
Subject: Re: How to dynamically set default tab via page anchor in URL

> I'll have to roll that into the code.

That's be great! Please ping me when you do. Cheers.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »