I am using AJAX
I have a form in which 4 div is used. When a button is pressed, the above function is called. At present I am able to change content in one div by using above method. I want to change content one more div which is a seperate div. How can I do this?
Thanks and regards,
Vikas
Code:
function log2(str){
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null) {
alert ("Your browser does not support AJAX!");
return;
}
var url="checkpss.asp?q="+str+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged1;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged1() {
if (xmlHttp.readyState==4) {
[B]document.getElementById("navBar1").innerHTML=xmlHttp.responseText;[/B]
}
}
Thanks and regards,
Vikas
Comment