C
Chuck Anderson
This seems like a very basic question - but I have searched Google and
the javascript faq and I cannot find an explanation.
What is the purpose of using eval in this manner (and this would be my
usage - data returned from an XMLHttpRequest).
var data = eval('(' + req.responseText + ')');
Why the inner parenthesis?
TIA
--
*****************************
Chuck Anderson • Boulder, CO
http://www.cycletourist.com
Turn Off, Tune Out, Drop In
*****************************
the javascript faq and I cannot find an explanation.
What is the purpose of using eval in this manner (and this would be my
usage - data returned from an XMLHttpRequest).
var data = eval('(' + req.responseText + ')');
Why the inner parenthesis?
TIA
--
*****************************
Chuck Anderson • Boulder, CO
http://www.cycletourist.com
Turn Off, Tune Out, Drop In
*****************************