PDA

View Full Version : Open tab using url and query string.



valc
10 Jan 2007, 9:47 AM
Is it possible to open a page to a specific tab? Possibly based on a value in the quest string ?

I have the following scenario where I load a web page (that contains tabs constructed from existing HTML) into an iframe. I then need to send a url to someone to open the webpage, in the iframe, to a specific tab. Can this be one ?

tryanDLS
10 Jan 2007, 10:11 AM
After you construct your tabs, you can activate any one of them - you could decide which one based on the querysting.

valc
10 Jan 2007, 10:32 AM
Can I do it in teh on load event of the page ?

How do I get the correct reference to the tab, is it by id ?

tryanDLS
10 Jan 2007, 10:36 AM
You could do it on page load, or I suppose when you build the Tabpanel. Look at the doc for TabPanel - most of the methods take an tab id or and index.