mmcarthey wrote:
> Hello all,
> I have a selection of checkboxes that I am using to call
the panel.open() and
> panel.close() methods. Everything is working fine, but I
would like to
> maintain the state of the checkboxes if the user happens
to click the tab for
> the panel. If I could do either of the following, it
would solve my problem.
> 1. Capture the event when the user clicks the tab, I
could modify the state of
> the checkbox, or
> 2. Disable the ability to click the tab to open/close
the panel.
Spry questions should be asked in the Spry forum:
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602
In order to do what you wan to do, you'll need to add an
onclick event to each panel header and have that even check the
appropriate box. One way to do this would be similar to the
following:
onclick="var cb = CollapsiblePanel1.getElement('checkbox1');
cb.checked = !cb.checked"
That this does is toggle the checkbox with an id of checkbox1
when the panel header for the CollapsiblePanel1 is clicked.
Please post follow up questions in the Spry forums.
--
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert