onClick Nightmare!

2004-04-14 Thread cf coder
Hello everybody. Thebelow code works, however when I
don't know how to put the same code in the
windows.open. I've tried really hard but keep getting
errors. Please can somebody show me how to do it.

document.write(a
href="">

I am trying to do this:

>
return false;

I would really appreciate your help
Regards,
cfcoder

	
		
__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: onClick Nightmare!

2004-04-14 Thread Nick de Voil
 Hello everybody. Thebelow code works, however when I
 don't know how to put the same code in the
 windows.open. 

Put it in a function 

script language=_javascript_
function openPopup(number, otherNumber) {
 x = window.open(...);
}
/script

... >

Nick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: onClick Nightmare!

2004-04-14 Thread Adkins, Randy
do something like

 
var url ="">
'attachment.cfm?id=cfoutput#url.Number#/cfoutputfilename=+escape(field
s[n])'

 
then
>
zable=Yes');

or atleast something along those lines

-Original Message-
From: cf coder [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 10:40 AM
To: CF-Talk
Subject: onClick Nightmare!

Hello everybody. Thebelow code works, however when I
don't know how to put the same code in the
windows.open. I've tried really hard but keep getting
errors. Please can somebody show me how to do it.

document.write(a
href="">
ields[n])++fields[n]+/abr);

I am trying to do this:

>
lename=+escape(fields[n])','Document','top=10,left=10,height=500,width=600,
resizable=Yes');
return false;

I would really appreciate your help
Regards,
cfcoder

__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: onClick Nightmare!

2004-04-14 Thread Ian Skinner
cfcoder

 
I am trying to do this:

>
return false;

The first two problems I see is that the + operator is the concatenate operator in _javascript_ the  operator is the concatenate operator in CFML, so you will need to change the + to an .Secondly escape is a JS function not a CFML function, I think the equivalent you need would be urlEncodedFormat().That should get you closer to your goal.

 
HTH

 
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

C code. C code run. Run code run. Please!
- Cynthia Dunning
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: onClick Nightmare!

2004-04-14 Thread Charlie Griefer
>
lename=' + escape(fields[n]), 'document',
'top=10,left=10,height=500,width=600,resizable=yes'); return false;

- Original Message - 
From: Ian Skinner [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 8:24 AM
Subject: RE: onClick Nightmare!

 cfcoder

 I am trying to do this:


>
lename=+escape(fields[n])','Document','top=10,left=10,height=500,width=600,
resizable=Yes');
 return false;



 The first two problems I see is that the + operator is the concatenate
operator in _javascript_ the  operator is the concatenate operator in CFML,
so you will need to change the + to an .Secondly escape is a JS function
not a CFML function, I think the equivalent you need would be
urlEncodedFormat().That should get you closer to your goal.

 HTH

 --
 Ian Skinner
 Web Programmer
 BloodSource
 www.BloodSource.org
 Sacramento, CA

 C code. C code run. Run code run. Please!
- Cynthia Dunning






 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]