Try
createrequest
:
<removed language="javascript" type="text/javascript" />
var request;
function createrequest()
{
request=null;
request = new ActiveXObject("Msxml2.XMLHTTP";);
if (request == null)
alert("Error Creating Object";);
}
function updatepage()
{
if (request.readyState == 4)
{
var rate;
rate = request.responseText;
}
}
function GetRate()
{
var fullurl;
createrequest();
fullurl = "ABC.HTML";
request.open("GET", fullurl, true);
request.onreadystatechange=updatepage;
request.send(null);
}
Try this JavaScript:
After you get the HTML, modify it and write in a
DIV
(ID should be "
Result
") object like:
document.getElementById("Result").innerHTML=rate;
I hope this will solve your purpose.
Please reply if this is helpful?
This code is browser specific. Search on the web to find the browser and their object names.