not sure this is what you want but you can easily build tabs with
web2pys included ajax functions

default.py

def index():
 return dict()

def page1():
 return 'this is page 1'

def page2():
 return 'this is page 2'


index.html
{{=UL([LI('Page %s'%i,
_onclick=XML("web2py_component('%s','tabtarget')"%URL(request.application,
'default', 'page%s'%i))) for i in range(1,3)], _class='tabs')}}
<div id='tabtarget'>Welcome to the initial content</div>

<style>
 li {
list-style: none;
float: left;
border: solid 2px black;
border-bottom: none;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
</style>

just improvised a bit with the css, but this is the main idea

On Jan 6, 6:58 am, "David J." <[email protected]> wrote:
> I was wondering if anyone on the list has seen an good multi-level
> horizontal tab menu.
>
> I have
>
> <div id="menu">
>
> <ul>
> <li class="selected">Company
> <ul>
> <li class="selected">Overview</li>
> <li>Our People</li>
>
> </ul>
> <li>Products
> <ul>
> <li>Product 1</li>
> <li>Product 2</li>
> </ul>
> </li>
>
> </ul>
> </div>
>
> Obviously the second layer is visible on the "selected" tab.
>
> I was hoping there might be something already made that does this.
>
> I dont want a drop down menu;
> I am looking for horizontal tabs.
>
> Sorry I know its not web2py related; but my project is in web2py. =)

Reply via email to