You could just put them all together.  The following code works for me.  We
have an upload link that opens a page, places today's date in a text input
box and sets a hidden variable.  Pretty crazy, but I had to do it this way
because I had dynamic variables to pass to the new window and which text box
and variable.  Here's the anchor tag I use to do all three functions at
once.

<a href="##Language-#ProductionID#"

onClick="window.document.form1.BackUpDate#productionid#.value='#DateFormat(n
ow(), 'mm/dd/yy'#';
                window.document.form1.FinalFiles.value='1';

window.open('upload.cfm?ProcessID=8&LangID=#LanguageID#&OrderID=#OrderID#',
'newwindow', 'height=350,width=600')")">
Upload</a><br>

Works like a charm, but I've only tested with IE.

Richard Ramos
Network Administrator
Softitler Net, Inc.
www.softitler.com
[EMAIL PROTECTED]

----- Original Message -----
From: "Les Irvin" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, February 21, 2001 2:57 PM
Subject: Two functions with a single onClick?


> Can more than one javascript function be performed with a single
> onClick?  If so, how would it be written?
> Thanks,
> Les
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to