>> I'm hoping someone has an easy answer for this:
>
>Two options:
>
>1) Put the new Spry.Widget.CollapsiblePanel() call inside the loop. One call 
>for each panel
>
>2) Use this custom tag:
>http://www.massimocorner.com/coldfusion/custom_tag/sprycollapsible.zip
>
>----------------------------
>Massimo Foti, web-programmer for hire
>Tools for ColdFusion, JavaScript and Dreamweaver:
>http://www.massimocorner.com
>----------------------------



Massimo,


Option 1 worked.
<cfloop index="oIDX" from="1" to="#ArrayLen(ObjArray)#" step="1">

<div id="CollapsiblePanel<cfoutput>#index#</cfoutput>" class="CollapsiblePanel">
  <div class="CollapsiblePanelContent">
     content
  </div>
</div>



<script type="text/javascript">
<!--
        var CollapsiblePanel<cfoutput>#index#</cfoutput> = new 
Spry.Widget.CollapsiblePanel("CollapsiblePanel<cfoutput>#index#</cfoutput>", 
{contentIsOpen:false});
//-->
</script>
</cfloop>


Next time I will try your custom tag.

Thanks for the help!


Alex


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317661
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to