[jQuery] Re: $.getJSON isn't working while getting the JSON data from hidden field

2009-03-18 Thread Steven Yang
yes $.getJSON does do eval internally so what your trying to accomplish is, trying to eval a string into javascript object but u dont want to write eval() everywhere right? or i misunderstood your question in anyway?

[jQuery] Re: $.getJSON isn't working while getting the JSON data from hidden field

2009-03-17 Thread Mohammed Arif
Steven, I am doing the same way as you said using eval and storing the string in JS variable. I may be wrong but as per my understanding $.getJSON also does eval() internally. Just wanted to do pure implementation only through $.getJSON without using eval() custom JS method. Thanks Mohammed Ari

[jQuery] Re: $.getJSON isn't working while getting the JSON data from hidden field

2009-03-17 Thread Steven Yang
Sorry if i am mistaken in anywaybut $.getJSON is suppose to be for getting JSON data from remote server or simply server, but not for you to eval a String into javascript object. And from the source of jQuery I believe it will simply to eval('('+json+')') anyway. And if you want to do it that way,