Sign In/My Account | View Cart  
advertisement

Article:
 Very Dynamic Web Interfaces
Subject: Very nice article
Date: 2005-03-13 09:33:34
From: nicolash
Response to: Very nice article

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!)


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Sponsored By: