Hi Ryan,
 
every " that you want to be in the string must have an escape character.
 
i.e. if you want ["ryan"s"] to be displayed you have to write new String("[\"ryan\"s\"]");
 
Hope it helps.
 
P

>>> [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


"All views or opinions expressed in this electronic message and its attachments are the view of the sender and do not necessarily reflect the views and opinions of the Provincial Government of the Western Cape ("the PGWC').
No employee of the PGWC is entitled to conculde a binding contract on behalf of the PGWC unless he/she is an accounting officer of the PGWC, or his or her authorised representative.

The information contained in this message and its attachments may be confidential or privileged and is for the use of the named recipient only, except where the sender specifically states otherwise.

If you are not the intended recipient you may not copy or deliver this message to anyone."


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to