IBM Support

XMLHttpRequestand IE

Technical Blog Post


Abstract

XMLHttpRequestand IE

Body

One of our readers asked me about a problem he was seeing with one of my Tips and Tricks.
 
 When used in the Script Adapter the line in bold below works great in FireFox, but causes an exception in IE 8.
 
xmlhttp= new XMLHttpRequest();
xmlhttp.overrideMimeType("application/json");
xmlhttp.open('GET' , getUserURL , false);
xmlhttp.send();
var myResObj = eval('(' + xmlhttp.responseText + ')');
 
The IE version of the XMLHttpRequest object does not support that method and in most cases, it  is not required.

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSCTJ4","label":"IBM Case Manager"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

UID

ibm11281676