Posted By

devnull69 on 07/01/11


Tagged

ajax post


Versions (?)

Ajax POST Request


 / Published in: JavaScript
 

  1. var xmlhttp = new XMLHttpRequest();
  2. xmlhttp.open('POST', 'http://whatever.com/myscript.php', true);
  3. xmlhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
  4. xmlhttp.onreadystatechange = function() {
  5. };
  6. xmlhttp.send('param=5');

Report this snippet  

You need to login to post a comment.