Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Spry collapsiblepanel onclick

Explorer ,
Mar 06, 2009 Mar 06, 2009
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.

Is there a way to accomplish this task?
Thanks!
TOPICS
Extensions
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 06, 2009 Mar 06, 2009
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines