hi,
im trying to use a CFLOOP tag around a JS popup window function but it seems to be failing . Does anybody have any experience with this - is it possible?
My code is as follows:
<cfoutput>
<cfloop query="getnews" startrow="1" endrow="3">
<script language="JavaScript">
function topWindow1(){popup = window.open("#link#","","height=600,width=700,scrollbars=yes"}
</script>
<A HREF="javascript:topWindow1();">go!</a>
</cfloop>
</cfoutput>
The problem is that the #link# is the same for all 3 popups-the last record in the query.
Thanks!
im trying to use a CFLOOP tag around a JS popup window function but it seems to be failing . Does anybody have any experience with this - is it possible?
My code is as follows:
<cfoutput>
<cfloop query="getnews" startrow="1" endrow="3">
<script language="JavaScript">
function topWindow1(){popup = window.open("#link#","","height=600,width=700,scrollbars=yes"}
</script>
<A HREF="javascript:topWindow1();">go!</a>
</cfloop>
</cfoutput>
The problem is that the #link# is the same for all 3 popups-the last record in the query.
Thanks!