Spry collapsiblepanel onclick

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Spry collapsiblepanel onclick

    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!


    mmcarthey Guest

  2. Similar Questions and Discussions

    1. Combine Spry Tabbed Panel and Spry HTML Panel
      I would like to maintain the presentation of the tabbed panel and utilize its ability to load content from a Spry Dataset, but I would also like to...
    2. Nesting Spry CollapsiblePanel
      When nesting a Collapsible Panel with in a Collapsible Panel the CollapsiblePanelTab does not toggle between the open and closed state. I start the...
    3. How do you set up the OnClick with ASP 2.0 ?
      In my 1.1 project, I was creating dynamically a LinkButton, and stored it into a Table.Row.Cell.Controls(). I was adding an MyOnClick handler to...
    4. onclick
      What is going with mine code ??. When I select page2 from radio button, I should have "form2" display on the page but it seems to me nothing...
    5. [PHP] OnClick problem
      Hi, Are you using the variable $_SERVER for your link target? -Dan Joseph
  3. #2

    Default Re: Spry collapsiblepanel onclick

    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:
    [url]http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602[/url]

    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
    | [url]http://blog.extensioneering.com/[/url]
    | WebAssist Extensioneer
    | Adobe Community Expert
    danilocelic AdobeCommunityExpert Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139