On Jun 16, 2010, at 7:47 AM, Ronbo wrote:

Thanks Owen,

I was actually just thinking of a dumb div that has it's display
attrib toggled via javascript. I thought hobo might provide a tag for
this as a convenience, although it would not touch the back end at
all.

One of the designers I work with has been using the Easy Framework (http://easyframework.com/ ) which has some nice canned JS stuff for this. In particular, the "toggle" class might do what you want:

http://easyframework.com/demo_showhide.php

The only fussy thing I ran across was that it was painful to get a div that displayed the *opposite* behavior (started out open but could be closed). But it's not hard to write a little UJS-style stuff yourself (in application.js, for instance) to grab appropriate tags and add a simple toggle behavior.

--Matt Jones

--
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to