I see Tabber uses the parameter 'use_cookie=True' to give the possibility to set the default active tabber, but when we have more than one tabber widget all other tabbers will be set with the same default.
This is because the cookie uses a constant as name:

    tabberOptions['cookie'] = 'TGTabber*'*

I changed this behavior giving the possibility to assign the cookie name like this:

     tabberOptions['cookie'] = use_cookie

then passing parameter as:
   use_cookie='TabberOne'
or
   use_cookie='TabberTwo'


What about having it in the official version?

jo

PS:
The problem that I see here is the limit of cookies.


Jorge Vargas ha scritto:
On 11/6/06, Aaron Bostick <[EMAIL PROTECTED]> wrote:
FYI, I googled the tabber project.  You can set an additional class on
the div, "tabbertabdefault", to make that div the default div for a
particular page load.

Can you please open an enhancement ticket for that
Maybe something useful to put on the widget browser...

in case you want to take a look the code is at
http://trac.turbogears.org/turbogears/browser/trunk/turbogears/widgets/links.py

it should be trivial to add it since "tabber_options" goes to the JS file.

Aaron Bostick wrote:
I am using and loving the tabber widget in a project.  One thing I would
like to know however is whether you can specify which div to display on
the page load.

By default the first div always shows, but using a query string or
something, can I specify a different div to show first at different
time?  For instance, if one of my divs contains a form, and I want to
post right back to the same page and have that same div show the post
results?

That would be so cool! :)

Regards,
Aaron

--
Thank you,
Aaron Bostick
D&S Ltd.
512-735-0230


>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to