Escape the single quotes by doubling them--like this:

writeOutput( '<tr><td colspan="15" align="right"><INPUT TYPE="submit"
VALUE="Back"
onClick="javascript:btRep(''#REQUEST.VIRTUALROOT#secure/buildEnhReports/inde
x.cfm?fuseaction=buildReport'',''multipart/form-data'')"></FORM></td></tr>'
);

Chris Lofback
Sr. Web Developer

TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL  33761
www.trxi.com


> -----Original Message-----
> From: John McCosker [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 11:21 AM
> To: CF-Talk
> Subject: Evaluate Question
> 
> 
> Greetings,
> 
> inside a <CFSCRIPT> loop I am building html with Javascript 
> Event handlers
> attatched to <a href>'s posting to different areas within the app,
> 
> when I do this,
> 
> writeOutput( '<tr><td colspan="15" align="right"><INPUT TYPE="submit"
> VALUE="Back"
> onClick="javascript:btRep('#REQUEST.VIRTUALROOT#secure/buildEn
> hReports/index
> cfm?fuseaction=buildReport','multipart/form-data')"></FORM></t
> d></tr> ' );
> 
> I get this error,
> 
> Invalid parser construct found on line 34 at position 129. 
> ColdFusion was
> looking at the following text:
> 
> #
> Invalid expression format. The usual cause is an error in the 
> expression
> structure.
> 
> I tried using evaluate,
> 
> writeOutput( evaluate( '<tr><td colspan="15" align="right"><INPUT
> TYPE="submit" VALUE="Back"
> onClick="javascript:btRep('#REQUEST.VIRTUALROOT#secure/buildEn
> hReports/index
> cfm?fuseaction=buildReport','multipart/form-data')"></FORM></t
> d></tr> ' )
> );
> 
> but I still get the same error, although I think I'm using 
> evaluate in the
> wrong context,
> in fact I havn't applied it before,
> 
> any ideas,
> 
> respectfully,
> 
> j
> 
> 
> 
> 
______________________________________________________________________
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to