View Single Post
 
Old February 24th, 2012, 11:40 AM
张松伟 张松伟 is offline
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by prithagupta View Post
Yes i know ajax but can you tell me how to do it??
first,you need to create ajax engine:var xmlHttp = new XMLHttpRequest();it depends on your browser.
second:xmlHttp.open("get",url,true);
xmlHttp.send(null)
xmlHttp.onreadystatechange = callback;
function callback(){
if(xmlHttp.readyState == 4){ document.getElementById("id").innerHTML = xmlHttp.responseText;
}
}
actually,you can google or baidu,there are many things what you want