MRB COMPANY
Member
سلا دوستان
اين كد كجاش مشكل داره؟
كار نمي كنه
اين كد كجاش مشكل داره؟
كار نمي كنه
HTML:
<html>
<head>
<script language="javascript" type="text/javascript">
if(window.ActiveXObject){
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}else{
xmlHttp=new XMLHttpRequest();
}
function makerequest(serverPage,objID){
var obj=document.getElementById(objID);
xmlHttp.open("GET",serverPage);
xmlHttp.onreadystatechange=function (){
if(xmlHttp.readystate==4 && xmlHttp.status==200){
obj.innerHTML=xmlHttp.responseText;
}
}
xmlHttp.send(null);
}
</script>
</head>
<body onload="makerequest ('content1.html','hw')">
<div align="center">
<a href="content1.html" onclick="makerequest('content1.html,'hw'); return false;">page1</a>
<div id="hw"></div>
</div>
</body>
</html>