[thelist] SQL Assistance

Scott Brady evolt at scottbrady.net
Tue Apr 1 11:35:36 CST 2003


---------- Original Message ----------------------------------
From: "Morgan Kelsey" <morgan at morgankelsey.com>

>did i really beat rudy to this one?

I think Rudy's busy with that whole Internet Spring Cleaning thing . . . .

<tip type="ColdFusion">
Do you want to output a ColdFusion variable within JavaScript (say, in an alert() box) but are worried about single quotes and other characters screwing it all up?

CF has a function for just that circumstance, JSStringFormat().

Instead of:

alert('#myVar#');

Just use:

alert('#JSStringFormat(myVar)#');

</tip>
---------------------------
Scott Brady
http://www.scottbrady.net/
 
             


More information about the thelist mailing list