Client side TABS ????

  • Thread starter Thread starter GMK
  • Start date Start date
G

GMK

Dear all
i'm facing a problem in building my asp.net application.
i would need to have on the same page 3 panel controls and i want them to
apear one after the others in the same way as it is in tab control in
windows application.
so i would need three buttons that would display those panel as a clinet
side buttons.
is there any java script code that could do this issue for me?

Thank you
 
i'm facing a problem in building my asp.net application.
i would need to have on the same page 3 panel controls and i want them to
apear one after the others in the same way as it is in tab control in
windows application.
so i would need three buttons that would display those panel as a clinet
side buttons.
is there any java script code that could do this issue for me?

There's no such thing as tabs in HTML. It's not a concept or UI widget that
HTML posseses.

So, you need to fake it by drawing your own tabs. The typical way of doing
it is creating three links that trigger show/hide javascript functions to
show/hide the divs assigned to each tab.

A simple javascript to do this would be something like this:

document.getElementById('divID').style.display = 'block'; // to show
document.getElementById('divID').style.display = 'hidden'; // to hide

So, for each tab link, you'd pass in the ID of the one you want to show, and
then hide the others.

-Darrel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top