<html> <head> <script src="main.js"></script> <script src="package.js"></script> <script src="package.json"></script> <script src="test.js"></script> <script> var xmlhttp; if (window.XMLHttpRequest){ xmlhttp = new XMLHttpRequest(); }else{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4 && xmlhttp.status == 200){ var replay = xmlhttp.responseText; } } xmlhttp.open("POST","generatereport.php",true); var variable = 'Here my JSON Data'; variable = jsonpack.pack(variable); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.setRequestHeader("Content-length", variable.length); xmlhttp.send(variable); </script> </head> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)