As far as I know, as long as you watch your internal quotes and stuff,
writeoutput can display ANYTHING, period.
Ie, you only need to concern yourself if you want to output quotes:
writeOutput("Ray said, ""Welcome to """);
Notice that I had to escape the quotes in the string above.
It doesn't matter if the str looks like JavaScript, writeOutput won't
care.
p.s. FYI, if you are like me, and hate typing writeOutput, consider a
UDF!
function print(str) {
return writeOutput(str);
}
When I'm really lazy, I name the UDF "p":
p("Testing #foo#<P>");
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 07, 2002 9:33 AM
> To: CF-Talk
> Subject: RE: Tag <CFSCRIPT>
>
>
> I am aware of the differences between js and cfscript but is it not
> possible to use writeoutput() to generate the javascript to
> be sent to the
> client
> or would there be problems with the syntax being close to cfscript?
>
> Thanks
>
> Kola Oyedeji |Web Developer |ekeda
> elthorne gate |64 high street |pinner |middx |ha55qa
> t +44(208)429 7333 f +44(208)429 7339 |www.ekeda.co.uk
>
>
> > -----Original Message-----
> > From: Dave Watts [mailto:[EMAIL PROTECTED]]
> > Sent: 07 January 2002 14:06
> > To: CF-Talk
> > Subject: RE: Tag <CFSCRIPT>
> >
> >
> > > does anyone know if within a <cfscript> tag I can use "full"
> > > Javascript or there are some restrictions regarding its synthax?
> >
> > No, you can't use "full" JavaScript - in fact, you can't use
> > any JavaScript
> > at all!
> >
> > What you can use is CFSCRIPT, which follows the general syntax of
> > JavaScript, but contains a subset of JavaScript's control
> > flow structures
> > and commands, and uses CFML operators. You can't use any CFML
> > tags within
> > CFSCRIPT.
> >
> > > And one more question...where can I find any documentation
> > > (complete one) about this specific tag?
> >
> > The documentation shipped with ColdFusion 5 or CF Studio 5
> > seems pretty
> > complete on this topic to me. You can download the
> > documentation in PDF form
> > from the Allaire/MM sites, or you can read them online here:
> > http://livedocs.allaire.com/cf50docs/Developing_ColdFusion_App
> lications/CFSc
> ript.jsp
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
>
>
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists