WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 TabPane onLoad event , Seth, January 20, 2004
     Re:TabPane onLoad event , Erik Arvidsson, January 22, 2004
         Re:TabPane onLoad event , John Quarto, February 11, 2004
             Re:TabPane onLoad event , Greg Bays, March 16, 2004

Subject: Re:TabPane onLoad event From: Greg Bays Date: March 16, 2004

Check out my page at http://www21.brinkster.com/seeit360/shop.asp?uid=z9959 It is a vCard page that uses the tabs and some alterations to tabpane.js have been made to allow the creation of dynamic id

From: John Quarto
Sent: Feburary 10, 2004
Subject: Re:TabPane onLoad event

I was looking into the switch/case statement that Erik pointed out and it occured to me:  since we have to identify each of the tab-pane objects on the page with an "id", then it seems redundant to have such a switch statement because it has to be modified each time the id values or number of tab-pane objects is changed.

Instead, is there a method along the lines of, say,

setSelectedIndexByID()

or something which loops through the tab-panes and sets the active one by its name rather than its index?

Or, even simpler, what about just a way to loop through all the id's and return the index of the id that matches the method argument such as

getIndexByID(anID)

so that we can do:

setSelectedIndex(getIndexByID('tab-id-1'))

and therefore not having to have a bunch of case statements at all?

How can we loop over all the tab-panes and get their IDs and their indices?

From: Erik Arvidsson
Sent: January 22, 2004
Subject: Re:TabPane onLoad event

Why don't you use setSelectedIndex instead?

See the main page for the tab pane article and notice how the links switches the selected tab.

erik






Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX