in reply to Perl's CGI.pm and Javascript's XMLHttpRequest (SOLVED)
Did you set a content-type header for your POST request? Try adding this before you call send():
xmlhttp.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded' );
Also, I strongly recommend checking out something like prototype.js -- it makes doing cross-platform AJAX requests much easier than dealing with XMLHTTPRequest directly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl's CGI.pm and Javascript's XMLHttpRequest
by chargrill (Parson) on Dec 06, 2006 at 21:50 UTC |