A quick simple question... given the following js code

if (window.XMLHttpRequest){
        var xhr = new XMLHttpRequest();
} else {
   ... IE stuff....
}

var params = "key=value& etc...";

xhr.open("POST", formUrl, true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-
urlencoded");
xhr.setRequestHeader("Content-length", params.length);
xhr.setRequestHeader("Connection", "close");
xhr.send(params);

Are the params good to go or should they be escaped for POST method?
e.g.
var params = "key="+ escape(value) +"& etc...";

thanks

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to