[Project_owners] XMLHttpRequest() object

Biju G C bijumaillist at yahoo.com
Thu Sep 11 19:40:14 EDT 2003


 --- Pete Collins <pete at mozdev.org> wrote: > Doron Rosenberg wrote:
> 
> You can take a lool at jslib which wraps this stuff up.
>    http://jslib.mozdev.org/libraries/network/http.html
> --pete
> 

Thanks pete...
I hav gone thru JSLib and found, wat I missed.

>> p.setRequestHeader("Content-type","application/x-www-form-urlencoded");

Now following works fine
   var p = new XMLHttpRequest();
   p.open("POST", "http://xxx.yyy.com/process.php", false);
   p.setRequestHeader("Content-type","application/x-www-form-urlencoded");
   p.send("code=aaaa");  //ensure (key, value) pair is properly escaped
   alert(p.responseText);
   


________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk


More information about the Project_owners mailing list