August 20, 2008
For ColdFusion hosting try HostMySite.com. |
Home /
Groups /
ColdFusion Talk (CF-Talk)
javascript escape sequence problem
I have a javascript that I'm trying to embed some CF intoGilbert Midonnet 12/20/01 10:47 A Your double quotes inside of your pound signs should not make a differenceBILLY CRAVENS 12/20/01 10:56 A yes, the js is inside of a <cfoutput> -- and no, the double quotesGilbert Midonnet 12/20/01 11:24 A If I read it correctly the only thing you are asking cf to do is urlencode aDon Vawter 12/20/01 11:39 A I'm going to try that now. thxGilbert Midonnet 12/20/01 11:45 A
Author: Gilbert Midonnet
I have a javascript that I'm trying to embed some CF into its an if-else if a { cellStart + ahrefStart + 'summary' + getYear + '_' + getMonth + '_' + ... } I want to add a piece of code [see below] var encodeStart = 'aaa/bbb.cfm?PDFPath=#URLEncodedFormat("ccc/ddd")#&PDFName=#URLEncodedFormat ("eee.pdf") '; and make the new statement: if a { cellstart + ahrefStart + encodeStart + 'summary' + getYear + '_' + getMonth + '_' + ... } however it's not reading correctly. If I remove the " it reads the ccc/ddd. If I leave it, it doesn't. ???? But it works elsewhere var cellStart = '<a href="'; I've tried every combination I can think of. Has anybody come across a problem like this? TIA gilbert midonnet ---------------------------------------------------------------------------- ---------------------------------------------------- This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. ______________________________________________________________________ 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
Author: BILLY CRAVENS
Your double quotes inside of your pound signs should not make a difference if they're part of a function. Is the JavaScript nested inside of a CFOUTPUT? --- Billy Cravens 'aaa/bbb.cfm?PDFPath=#URLEncodedFormat("ccc/ddd")#&PDFName=#URLEncodedFormat ccc/ddd. -- > ---------------------------------------------------- > This message is for the named person's use only. It may contain > confidential, proprietary or legally > privileged information. No confidentiality or privilege is waived or lost by ______________________________________________________________________ Why Share? Dedicated Win 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=coldfusionc
Author: Gilbert Midonnet
yes, the js is inside of a <cfoutput> -- and no, the double quotes should not make a difference. Your double quotes inside of your pound signs should not make a difference if they're part of a function. Is the JavaScript nested inside of a CFOUTPUT? --- Billy Cravens 'aaa/bbb.cfm?PDFPath=#URLEncodedFormat("ccc/ddd")#&PDFName=#URLEncod edFormat ccc/ddd. > If I leave it, it doesn't. ???? But it works elsewhere > > var cellStart = '<a href="'; > > I've tried every combination I can think of. Has anybody come across a ------------------------------------------------------------------------ -- -- > ---------------------------------------------------- > This message is for the named person's use only. It may contain > confidential, proprietary or legally > privileged information. No confidentiality or privilege is waived or lost by > any mistransmission. If > you receive this message in error, please immediately delete it and all > copies of it from your > system, destroy any hard copies of it and notify the sender. You must not, > directly or indirectly, > use, disclose, distribute, print, or copy any part of this message if you > are not the intended > recipient. > > > > ______________________________________________________________________ Why Share? Dedicated Win 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=coldfusionc
Author: Don Vawter
If I read it correctly the only thing you are asking cf to do is urlencode a string. Why not just use the javascript function "escape" which is equivalent? ______________________________________________________________________ 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=coldfusiona
Author: Gilbert Midonnet
I'm going to try that now. thx Just looked it up in the rhino book -- looks like it might do the trick. -- glm If I read it correctly the only thing you are asking cf to do is urlencode a string. Why not just use the javascript function "escape" which is equivalent? 'aaa/bbb.cfm?PDFPath=#URLEncodedFormat("ccc/ddd")#&PDFName=#URLEncod across ------------------------------------------------------------------------ or must > not, > > directly or indirectly, > > use, disclose, distribute, print, or copy any part of this message if ______________________________________________________________________ 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
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||