topical media & game development
basic-ajax-08-NETTransform.js / js
var xHRObject = false;
if (window.XMLHttpRequest)
{
xHRObject = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
xHRObject = new ActiveXObject("Microsoft.XMLHTTP");
}
function Transform()
{
xHRObject.open("GET", "NETTransform.aspx", true);
xHRObject.onreadystatechange = getData;
xHRObject.send(null);
}
function getData()
{
if ((xHRObject.readyState == 4) &&(xHRObject.status == 200))
{
var spantag = document.getElementById("example").innerHTML = xHRObject.responseText;
}
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.