How do you have ColdFusion interact with a Javascript function for opening a
new window so that the content of the new window changes based on the URL
variable? The following code does not work. The same ID gets passed to the
new window for each link created in the second output. Can this be done?
<SCRIPT>
<cfoutput query="Events">
function CreateWindow() {
msgWindow=window.open("ShowEvent.cfm?ID=#ProgramID#","displayWindow","toolba
r=no,width=200,height=200,left=80,top=80,directories=no,status=no,scrollbars
=yes,resize=no,menubar=no")
}
</cfoutput>
</SCRIPT>
<cfoutput query="Events">
<a href="javascript:CreateWindow()">#ProgramName#</a>
</cfouput>
Thanks,
Sebastian
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.