|
-
May 20th, 2002, 09:04 AM
#1
Thread Starter
Member
special inline characters - javascript
Hi all,
I have a session variable that contains the following string "europe\bmaher" , when I use an alert to display this the '\b' in the string is interpreted as a special inline char ie. backspace. I've tried using the string.replace() function to replace the \ with a \\ and it still doesn't work. Does anyone know how to display the string without any interpretation ??
Thanks
-
May 21st, 2002, 11:08 AM
#2
Frenzied Member
Instead of replacing "\" with "\\", try replacing "\b" with "\\b".
I'm sure there are other ways, so check the sig.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|