evaluated. Very convenient when you need the data server-side, or while debugging your client-side code. The code is optimized for performance and compatibility.
v1.3 (2006-04-13). See code for details
IE5/6, Firefox 1.0.7/1.5; Opera7.51/9.00
IE5.2.3, Firefox 1.0.6/1.5; Safari 1.3.2/2.0.2/Nightly2006-04-13; Opera 7.54 + 8.52
var str='I\'m creating a string\nwith escape codes.';
- Doesn't work with Opera 6.02/Mac.
- No pretty-print/formatting is implemented.
After I got the idea, and programmed the biggest part, I found out, Netscape already has native support
for this functionality.
toSource(), but ECMA (and therefor IE) has not.
This is a rewrite of my toSource library. It's a rewrite, to boost performance. The library sports a
method and a
function interface. When you serialize variables