no sure why you would want to eval a new String object but..- ( from Javascprit Bible..) if you are using the eval to get an reference to an object its recomended to rather use the getElement ById() method.. if you are using it to evaluate a String as method then you probably should not be using any escape characters... as a last resort you could try to first encode and unencode as necessary using :
var x = escape("abc...")
eval(new String(x
var y= unescape("etc") ?


On 7/11/06, Java Mad <[EMAIL PROTECTED]> wrote:
you are not clear
do you mean [ryan"s"] or what
how must the output look


Ryan Meder < [EMAIL PROTECTED]> wrote:
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


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.


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