Re: JS within CFscript

2002-09-26 Thread S . Isaac Dealey

> if (yourcondition is met) {
> alertmessage = '';
> alertmessage = alertmessage&chr(10)&'alert("Your alert here")';
> alertmessage = alertmessage&chr(10)&'';
> }

> Then outside your cfscript do this :

> 
> 
> 

Have you had luck with  ?

I tried it once ( thinking it would be better to maintain the structure of
the html document ) and wasn't able to get it to output anything... I mean,
I use  around a 

RE: JS within CFscript

2002-09-26 Thread S . Isaac Dealey

> 
>   documentwrite("   language="javascript">alert('message!');");
> 

> That should work, shouldn't it?

Got your js and cf functions confused there... and you didn't escape your
double-quotes. :)


writeoutput("alert('message!');");



>   --Ben Doom
> Programmer & General Lackey
> Moonbow Software

> : -Original Message-
> : From: Kris Pilles [mailto:[EMAIL PROTECTED]]
> : Sent: Thursday, September 26, 2002 10:26 AM
> : To: CF-Talk
> : Subject: JS within CFscript
> :
> :
> : Is there anyway to have Cfscript open an JS alert box for me???
> :
> :
> : Kris Pilles
> : Website Manager
> : Western Suffolk BOCES
> : 507 Deer Park Rd., Building C
> : Phone: 631-549-4900 x 267
> : E-mail: [EMAIL PROTECTED]
> :
> :
> :
> 
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: JS within CFscript

2002-09-26 Thread S . Isaac Dealey

Here's a method using a UDF... Mike's comments still hold, but this would
create a shorthand way for you to do it whether or not the  block
is inside a javascript  block or not.


function jsalert(message, createscriptblock) {
if (createscriptblock) { writeoutput("