Forgot to mention we're stuck in CF 4.0, but thanks for the response. Nice
to know someone cares ; ). I think I'll have to manually escape each special
character with <cfset mystring = Replace(mystring, "'", "\'", "ALL")>
Maybe you have a better solution?
John
-----Original Message-----
From: Ubqtous [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 9:50 PM
To: CF-Talk
Subject: Re: CF and _javascript_ HELP - Maybe OT?
John,
On Wednesday, January 14, 2004, 4:34:22 PM, you wrote:
JG> Everything works fine until I get a non alpha-numeric character,
JG> i.e., ".", """, "'", "/", "&", "(", ")", in the #WholeName#
JG> variable. Then, _javascript_ bombs and returns an error: "error
JG> expected ';'".
JG> Can someone help me with handling regular expressions in
JG> _javascript_, so the above code will accept special characters in
JG> the name? Grateful doesn't begin to describe how I'll feel.
Perhaps JSStringFormat() would help?
~ Ubqtous ~
_____
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- CF and JavaScript HELP - Maybe OT? John Grubb
- Re: CF and JavaScript HELP - Maybe OT? Ubqtous
- Re: CF and JavaScript HELP - Maybe OT? John Grubb