|
You could change the outermost " to ':
eval(new String('["ryan\"s"]'));
Tested. It works.
>>> [EMAIL PROTECTED] 07/11/06 3:20 PM >>> Hi Guys.
I am making use of the _javascript_ "eval" method i send the method a String that looks like this:
"["ryan"s"]"
the value is formatted with escape characters and then looks like this.
eval(new String("[\"ryan"s\"]"));
The problem that I have is that the value of the quote(") after the "n" of the word "ryan" is within quotes that contain escape characters.
So the question is what is the escape character for a quote in a string of a value that sits in between two quotes that already contain escape characters in _javascript_.
I hope my question makes sense.
Thank you all -- Regards, Ryan Meder
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum For the ctjug home page see http://www.ctjug.org.za -~----------~----~----~----~------~----~------~--~--- |
- [CTJUG Forum] Re: Javascript quotes escape character with... Bertram Julius
- [CTJUG Forum] Re: Javascript quotes escape character... Bertram Julius
- [CTJUG Forum] Re: Javascript quotes escape character... Paul Gilowey
- [CTJUG Forum] Re: Javascript quotes escape character... Pierre Mallinson
