views:

3069

answers:

5

Hi, i'm new to jquery and I like to know how to do the following:

1) Dynamically create tabs with iFrame inside

2) ability to remove tabs on the fly without postback

3) tabs are unlimited and can shrink depending on the length of the browser

Sorry if this may be too much to ask, but i'd like to learn how to do this. A perfect example of what I'm trying to achieve is the tabs present in the new Yahoo mail UI. When the user selects a mail entry, a new tab will be generated on the fly.

Thank you

A: 

You can use jQuery Tabs 3 Plugin.

kara
A: 

You can use the jQuery Tabs element at http://docs.jquery.com/UI/Tabs

AutomatedTester
thank you, but how do i program it to add a new tab without losing state on the other tabs?
A: 

The jQuery tabs plugin can be used. You will not lose the state on the other tabs, because they aren't removed, but simply hidden (display: none).

Mythica
A: 

how to Dynamically create tabs with iFrame inside?

A: 

Try this example.. This creates tabs dynamically the way you probably wanted.

Dynamically adding jQuery Tabs

Here's a quick working demo.. Dynamic TAB Demo

rajesh pillai