<a href="javascript:newwindow(url='newwindow.htm')">

 should be:

<a href="javascript:newwindow('newwindow.htm');">

And in your window.open method, if the value of a parameter is "no", you
don't need to list it, as long as you have at least one "yes".

-Ron



> -----Original Message-----
> From: Anthony Caroleo [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 24, 2000 10:06 AM
> To: '[EMAIL PROTECTED]'
> Subject: JavaScript Open New Window in ColdFusion template!!
>
>
> Hello All,
>
> I hope that you can give me hand with this annoying little
> problem that I am
> having, I need to open up a new window containing some HTML
> forms using
> JavaScript.  I can get the script to work on a HTML page
> standalone, but
> when I embed the script in a table on my cfm template the
> link opens up a
> window with no data and the URL contains the script!
>
> My function is as follows:
>
> <SCRIPT type="text/javascript">
> <!--
>
>       function newwindow()    {
>
>
> window.open(url,'CC','toolbar=no,location=no,scrollbars=no,dir
> ectories=no,me
> nubar=no,resizable=yes,width=550,height=450');
>
>       }
> // -->
> </script>
>
>
> My JavaScript link is as follows:
>
> <a href="javascript:newwindow(url='newwindow.htm')">
>
> On looking at the debug information after the blank page is opened the
> JavaScript link is followed by a ColdFusion link, which is
> the same link as
> the preceding page.  My question is what am I doing wrong and
> why does the
> ColdFusion link appear after the JavaScript link?
>
> Any help on this would be greatly appreciated.
>
> Many Thanks in advance
>
> Anthony Caroleo
> --------------------------------------------------------------
> ----------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=list
s/cf_talk 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.

Reply via email to