RE: Evaluate Question
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( 'trtd colspan=15 align=rightINPUT 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( 'trtd colspan=15 align=rightINPUT 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Evaluate Question
Escape the single quotes by doubling them--like this: writeOutput( 'trtd colspan=15 align=rightINPUT 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( 'trtd colspan=15 align=rightINPUT 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( 'trtd colspan=15 align=rightINPUT 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Evaluate Question
Have you tried escapeing the apostrophes. Cheers (''#REQUEST.VIRTUALROOT#secure/buildEnhReports/index cfm?fuseaction=buildReport'',''multipart/form-data'')/ 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( 'trtd colspan=15 align=rightINPUT TYPE=submit VALUE=Back onClick=javascript:btRep('#REQUEST.VIRTUALROOT#secure/buildEnhReports/index cfm?fuseaction=buildReport','multipart/form-data')/FORM/td/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( 'trtd colspan=15 align=rightINPUT TYPE=submit VALUE=Back onClick=javascript:btRep('#REQUEST.VIRTUALROOT#secure/buildEnhReports/index cfm?fuseaction=buildReport','multipart/form-data')/FORM/td/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 __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm 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: Evaluate Question
Cheers, thats all I had to do, Duh! -Original Message- From: mark brinkworth [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 4:39 PM To: CF-Talk Subject: Re: Evaluate Question Have you tried escapeing the apostrophes. Cheers (''#REQUEST.VIRTUALROOT#secure/buildEnhReports/index cfm?fuseaction=buildReport'',''multipart/form-data'')/ 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( 'trtd colspan=15 align=rightINPUT TYPE=submit VALUE=Back onClick=javascript:btRep('#REQUEST.VIRTUALROOT#secure/buildEnhReports/inde x cfm?fuseaction=buildReport','multipart/form-data')/FORM/td/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( 'trtd colspan=15 align=rightINPUT TYPE=submit VALUE=Back onClick=javascript:btRep('#REQUEST.VIRTUALROOT#secure/buildEnhReports/inde x cfm?fuseaction=buildReport','multipart/form-data')/FORM/td/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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Evaluate Question
SetVariable uses string functions so the secondline is setting the variable named hello to the value of goodbye it is not setting temp to goodbye to do that you would need setvariable(Temp,Goodbye) - Original Message - From: Baskin, Dave [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, December 10, 2001 2:53 PM Subject: Evaluate Question Can anyone tell me why the answer to this question is Hello Goodbye? What would the following CFML code output to a user? cfset Temp = Hello cfset x=SetVariable(Temp, Goodbye) cfoutput #Temp# #Evaluate(Temp)# wouldn't it be Goodbye Goodbye since you're setting Temp to Goodbye before you output? thanks for any guidance. d ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm 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: Evaluate Question
What actually happens is that the value that is assigned to Temp gets assigned the value Goodbye in this case. If you add #Hello# to your cfoutput then you would see Hello Goodbye Goodbye HTH Michael Corrigan Programmer Endora Digital Solutions www.endoradigital.com 630/942-5211 x-134 - Original Message - From: Baskin, Dave To: CF-Talk Sent: Monday, December 10, 2001 3:53 PM Subject: Evaluate Question Can anyone tell me why the answer to this question is Hello Goodbye? What would the following CFML code output to a user? cfset Temp = Hello cfset x=SetVariable(Temp, Goodbye) cfoutput #Temp# #Evaluate(Temp)# wouldn't it be Goodbye Goodbye since you're setting Temp to Goodbye before you output? thanks for any guidance. d ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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