You use single quotes to surround the entire writeOutput arg, but then
use single quotes in the onClick event handler. You need to escape them.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----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
> 
> 
> 
> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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