Ive a piece of Javascript that I am calling to pull data back from a web service.
In I.E 7 the following code pulls back a table (created via a webservice) and displays the table html as Text within a div on my page.
In Firefox it does nothing.
The following code will draw nothing in IE7 but will draw the actual table in firefox
So, what should I do to take the actual html fragment out of the xmlHTTP object and render it correclty within a div
Thanks
K
In I.E 7 the following code pulls back a table (created via a webservice) and displays the table html as Text within a div on my page.
In Firefox it does nothing.
Code:
var serverResponse = document.createElement("div");
serverResponse.innerHTML = xmlHttp.responseText
document.getElementById('dvResults').innerText = xmlHttp.responseText;
The following code will draw nothing in IE7 but will draw the actual table in firefox
Code:
var serverResponse = document.createElement("div");
serverResponse.innerHTML = xmlHttp.responseText
document.getElementById('dvResults').innerHTML = xmlHttp.responseText;
So, what should I do to take the actual html fragment out of the xmlHTTP object and render it correclty within a div
Thanks
K