In the following example I stop at ".toJSONString( )"
I have read all the articles on formatting JSON objects and arrays and I understand how it is a subset of JavaScript. But I have not been able to find a small (complete html page with headers) example. only small snippets of code, so it is hard to get the whole picture.
Can someone point me to a complete example
I have read all the articles on formatting JSON objects and arrays and I understand how it is a subset of JavaScript. But I have not been able to find a small (complete html page with headers) example. only small snippets of code, so it is hard to get the whole picture.
Can someone point me to a complete example
Code:
var request = window.ActiveXObject ?
new ActiveXObject('Microsoft.XMLHTTP') :
new XMLHttpRequest;
var url = '/SXYZ/projectLayout2.exe?timeStamp=' + new Date().getTime();
request.open("POST", url, true);
request.onreadystatechange = updatePage;
request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
request.send(myJrec.toJSONString());
Comment