I am trying to follow what you are wanting to accomplish with this.
You are setting htmlcontent to the string value 'htmlcontent' plus the
current 'count' value.
Then you are sending the htmlcontent1 variable (which doesn't appear to
exist) to the ToScript function? I think htmlcontent1 is part of the
database results. If this is the case, then your set statement could be:
<cfset htmlcontent = evaluate("GET_PARTYNAME.htmlcontent#COUNT#")> and then:
#toScript(htmlcontent,"html")#
Of course, I don't see where the resulting Javascript variable is being
used. Plus, if you keep using the same variable name for 'html', then the
only one that will be available to the system on the browser end will be the
last one that was created, unless you move that line inside the 'function'
area where it will become a local variable rather than a global one.
For debugging, I use Firefox with the 'web developer 1.1.4' add-on.
William
--
William E. Seiter
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
Web Developer
http://William.Seiter.com
<CFLOOP query="get_cand">
<cfquery name="GET_PARTYNAME" datasource="#datasource#">
SELECT *
FROM tbl_flavor_party
WHERE FLV_PARTY_ID = #get_cand.FLV_PARTY_ID#
</cfquery>
<cfset COUNT = (COUNT + 1)>
<cfset htmlcontent = "htmlcontent#COUNT#">
<cfset showWindow = "showWindow#COUNT#">
<script type="text/javascript" language="javascript">
<cfoutput>#toScript(htmlcontent1,"html")#</cfoutput>
function <cfoutput>#showWindow#</cfoutput>() {
var win = new Ext.Window({
width:400,
height:400,
title:"<cfoutput>#GET_PARTYNAME.FLV_PARTY# -
#get_cand.FLV_FLAVOR#</cfoutput>",
autoScroll:true,
modal:true,
html:html,
animateTarget:"btnHello"
});
win.show();
}
</script>
</CFLOOP>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297602
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4