function procVehicleXml(){
var xml;
var request = new XMLHttpRequest();
request.open("POST", rprUrl, true);
request.onreadystatechange = function(){
if (this.readyState === 4 && this.status === 200){
xml = this.responseXML;
console.dirxml(xml);
}
};
var apiMethod = {
apptoken: token,
action: "API_DoQuery",
clist: "35"
};
request.send(JSON.stringify(apiMethod));
}Question
Problem with XmlHttpRequest Javascript
this script logs 'null' for the xml object, I know I should use jQuery, but I would like to use an XHR object on this occasion, since I am working with another company's API as well and it would be really nice to know how to use XHR with quickbase
This topic has been closed for replies.
Sign up
Already have an account? Login
Login to the community
Login with Quickbase US – quickbase.com Login with Quickbase EU – quickbase.eu
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.