reset and begin
7/06/2009

ajax simple

function ajax(){ var ajaxrequest; ajaxrequest=new XMLHttpRequest();
ajaxrequest.onreadystatechange=function()
{ if(ajaxrequest.readyState==4)
{ document.myform.kq.value=ajaxrequest.responseText; } }
var so1=document.getElementById('so1').value;
var so2=document.getElementById('so2').value;
ajaxrequest.open("Get","ketqua.php?so1="+so1+"&so2="+so2,true);
ajaxrequest.send(null); }
</script> <form name="myform">
<input type="text" id="so1" />
<input type="text" id="so2" />
<input type="text" id="kq" />
<input type="button" value="ok" onclick="ajax()" /> </form>

Bloger Comments
G+ Comments
Comments FaceBook

No comments:

List

Profiles Information


About me : Nothing is 1 vài thứ - 1985

Places I've Lived : I Hà Nội

Home Page : http://www.shimivn.blogspot.com/

Think : 1:1000000000

Languages spoken : Vietnamese,English.

Mobile : sony C2305

dell : i3-Ram 3GB- HDD 250GB .