Try something like:
<SCRIPT>
<cfoutput query="Events">
function CreateWindow(myProgramName)
{
msgWindow=window.open("ShowEvent.cfm?ID="+"myProgramName",
"displayWindow","toolbar=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(#ProgramID#)">#ProgramName#</a>
</cfouput>
HTH
Dick
At 11:20 AM -0500 8/26/00, sebastian palmigiani wrote:
>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_tal
>k or send a message to [EMAIL PROTECTED] with
>'unsubscribe' in the body.
------------------------------------------------------------------------------
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.