tabber widgets, show selected ?

1 view
Skip to first unread message

Michael Gale

unread,
Mar 10, 2008, 11:37:39 AM3/10/08
to turbo...@googlegroups.com
Hello,

I am using the tabber widget to created tabs and it seems to work fine
however I can not figure out how to have one be selected when the page
loads ?

For example if I click on a link under the second tab, if the page
reloads then the first tab is selected :(

Here is the info from my master.kid
--snip--
<div class="tabber">

<div class="tabbertab">

<h2>Host Profiles</h2>

<p>Host Profile Manager is used to create and modify host configs.</p>

<h2>Options</h2>

<ul class="links">

<li><a href="/hosts/host_create">Add Host</a></li>

<li><a href="/hosts/host_update">Manage Hosts</a></li>

</ul>

</div>

<div class="tabbertab">

<h2><a href="/">Group Profiles</a></h2>

<p>Groups can be used to bring hosts together with Kickstarts
and generic groups for other purposes.</p>

<h2>Options</h2>

<ul class="links">

<li><a href="/groups/group_create">Create / Delete Group</a></li>

<li><a href="/groups/group_view">Views Groups</a></li>

</ul>

</div>

</div>
--snip--


In my controller I return:
mytabber = widgets.Tabber()
...
...
return dict(tabber=mytabber,.....
--snip--

Thanks

--
There is no line to cross. just a bar to be raised ....

Red Hat Certified Engineer
http://www.redhat.com/truthhappens/

Kevin Horn

unread,
Mar 10, 2008, 1:09:08 PM3/10/08
to turbo...@googlegroups.com
This has come up on the list before...I can't recall exactly what the solution was, but searching the list using groups.google.com should help you.

Kevin Horn

percious

unread,
Mar 10, 2008, 3:33:38 PM3/10/08
to TurboGears
Also, you can look at the source code for tabber.js and see what they
are doing to select tags, then put that in your on-load function.

-chris

On Mar 10, 11:09 am, "Kevin Horn" <kevin.h...@gmail.com> wrote:
> On Mon, Mar 10, 2008 at 10:37 AM, Michael Gale <gale.mich...@gmail.com>

Nick Murdoch

unread,
Mar 14, 2008, 7:42:04 AM3/14/08
to TurboGears
The Tabber widget's homepage, http://www.barelyfitz.com/projects/tabber/,
has details of how to do this on the Advanced tab.

Cheers,

Nick
Reply all
Reply to author
Forward
0 new messages