markus111: WebRequest per Javascript

Beitrag lesen

Hallo an alle,

wie kann ich mit Javascript einen WebRequest machen?
Mit Greasemonkey geht das etwa so:

  
 GM_xmlhttpRequest({  
  
  method: 'POST',  
  url: 'http://www.multispende.net/check.php',  
  
  headers:  
  {  
   'Content-type': 'application/x-www-form-urlencoded'  
  },  
  
  data: encodeURI('refid='+refid+'&action='+action+'&nick='+nickname+'&profilid='+profilid),  
  
  onload: function(responseDetails)  
  {  
  
   var content = responseDetails.responseText;  
  
   document.getElementById('content').innerHTML = content;  
  
  }  
  
   });  
  

mfg.
markus111