to POST instead of GET:
xmlHttpRequestInitialize();
req.onreadystatechange = xmlHttpRequestProcessReqChange;
req.open('POST', self.location.pathname);
req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
req.send('Whatevername=wahatevervalue&Whatevername2=wahatevervalue2');
you need to set the header
and put the data into the req.send.
(obviously better to fill the req.send by a function instead of hardcoding it!)
|