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

SANTAM Bpk / Ltd
Reg. No. 1918/001680/06


Directors: DK Smith (Chairman), SC Gilbert (Chief Executive), S Bray (Company Secretary), JJ Geldenhuys, JG le Roux, Dr NM Magau, AR Martin, Mr EA Moolla, JE Newbury, P de V Rademeyer, GE Rudman, Dr J van Zyl, BP Vundla, (Executive) MJ Reyneke


Please note: This email and its content are subject to the disclaimer as displayed at the following link http://www.santam.co.za/disclaimer.htm. Should you not have Web access, send a mail to [EMAIL PROTECTED] and a copy will be emailed to you.

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