Developer forum

Forum » Development » tabs in backend

tabs in backend


Reply
Im trying to make tabs for easy backend navigation. When I create 2 tabs like this:
<%=Gui.MakeHeaders("", "tab1, tab2", "html", false, "760")%>

I cant figure out how to use the tabs for navigation for example if tab2 should redirect to tab2.aspx.

Does anyone have any examples on how to do this?

Replies

 
Reply
When you click a tab, the javascript function TabClick(index) is called. This function sets css attribute display to [empty string] on an element called "Tab[index]" and sets the same attribute on all other Tab[...n] elements to none.

If you have two tabs, you should create two DIV elements ID=Tab1 and ID=Tab2. The element with ID=Tab1 would be the default element to be displayed when the page is loaded below the first tab and Tab2 is displayed when you click the second tab.

If you need to display the page with Tab2 as default in foreground, please add &Tab=2 to your querystring.

Hope you'll find this usefull.

 

You must be logged in to post in the forum