D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
diorahman
Full window
Github gist
XMLHttpRequest POST
<html> <head> <script type="text/javascript"> function loadXMLDoc() { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("myDiv").innerHTML=xmlhttp.responseText; } } xmlhttp.open("POST","https://localhost:8080/send/action",true); xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); xmlhttp.send('params={"session": "123", "token":"HE7qkv8lGaK2Mht684m79bJkT3", "action":"joborders", "mode" : "dev", "params":{"app":{"os":"harmattan", "qt": "4_7_4", "name" : "Campur Sari", "version": "0.0.1", "color":["green", "#d1d2d3","#f0f1f3"], "feedViewType": "Grid", "feeds": "Gamasutra News=https://feeds.feedburner.com/GamasutraNews, Gamasutra Feature Articles=https://feeds.feedburner.com/GamasutraFeatureArticles"}}}'); } </script> </head> <body> <h2>AJAX</h2> <button type="button" onclick="loadXMLDoc()">Request data</button> <div id="myDiv"></div> </body> </html>