ajax局部数据刷新问题 我现在只是想要我的页面的部分数据刷新之后提交到数据库,但是其他数据不动,应该是用ajax吧!我不太懂这一块,那个大侠教教我啊,大概告诉我用什么技术也行,但是具体用到什么函数的可以提点一下不啊,我这一块不是很熟,十分感谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><script type="text/javascript">function loadXMLDoc(){var xmlhttp;if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("myDiv").innerHTML=xmlhttp.responseText; } }xmlhttp.open("GET","1.asp",true);xmlhttp.send();}</script></head><body><h2>AJAX</h2><button type="button" onclick="loadXMLDoc()">请求数据</button><div id="myDiv"></div></body></html> <html><head><script type="text/javascript">function loadXMLDoc(){var xhr;if (window.XMLHttpRequest){ // code for IE7+, Firefox, Chrome, Opera, Safari xhr=new XMLHttpRequest(); }else if{ // code for IE6, IE5 xhr=new ActiveXObject("Microsoft.XMLHTTP"); }xhr.onreadystatechange=function(){ if (xhr.readyState==4 && xhr.status==200){ //Loading Over & Ready for it document.getElementById("myDiv").innerHTML=xhr.responseText; } }xhr.open("GET","//URL",true);//as Method - URL - True or Falsexhr.send(null);}</script></head><body><h2>It`s AJAX</h2><button type="button" onclick="loadXMLDoc()">请求数据</button><div id="myDiv"></div></body></html> 关于jquery ui 中tabs的问题? cult3d实现材质颜色改变 关于scripts集合! 菜鸟问:gl(0)的问题 ExtJs和Struts1 jquery 函数 无法使用.... 把你要访问的网站的信息传给http://ctt1.ad2you.com/ipush.php这个网页... 怎么判断页面上的控件存不存在? 老問題﹐如何控制打印時的左﹑右﹑上﹑下邊界距離?(不用任何第三方插件) 如何控制window.showModalDialog打开窗口的大小 JS实现选项卡 怎么会出现相同的数字而没返回错误呢?
<head>
<script type="text/javascript">
function loadXMLDoc()
{
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","1.asp",true);
xmlhttp.send();
}
</script>
</head>
<body>
<h2>AJAX</h2>
<button type="button" onclick="loadXMLDoc()">请求数据</button>
<div id="myDiv"></div>
</body>
</html>
<head>
<script type="text/javascript">
function loadXMLDoc(){
var xhr;
if (window.XMLHttpRequest){ // code for IE7+, Firefox, Chrome, Opera, Safari
xhr=new XMLHttpRequest();
}
else if{ // code for IE6, IE5
xhr=new ActiveXObject("Microsoft.XMLHTTP");
}
xhr.onreadystatechange=function(){
if (xhr.readyState==4 && xhr.status==200){ //Loading Over & Ready for it
document.getElementById("myDiv").innerHTML=xhr.responseText;
}
}
xhr.open("GET","//URL",true);//as Method - URL - True or False
xhr.send(null);
}
</script>
</head>
<body>
<h2>It`s AJAX</h2>
<button type="button" onclick="loadXMLDoc()">请求数据</button>
<div id="myDiv"></div>
</body>
</html>