Hi,

I'm hoping someone has an easy answer for this:

In looping through a query I want to set up collapsible regions

<div id="CollapsiblePanel<cfoutput>#loop-counter#</cfoutput>" 
class="CollapsiblePanel">
<div class="CollapsiblePanelTab goalcell" tabindex="0">
<em>Expand/Collapse Goal</em>
</div>
<div class="CollapsiblePanelContent">content</div>


so far so good, the problem is in initialing the regions:

Spry insert the following static script, and I need it dynamic

<script type="text/javascript">
<!--
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
var CollapsiblePanel2 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel2");
var CollapsiblePanelx = new Spry.Widget.CollapsiblePanel("CollapsiblePanelx");
//-->
</script>

The question is how can i loop through the init script myquery.recordcount 
times calling: 

var CollapsiblePanel[loop-counter] = new 
Spry.Widget.CollapsiblePanel("CollapsiblePanel[loop-counter]");


many TIAs,
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:317591
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