Çë½Ì¸ßÈËjquery+json+ajaxÎÊÌ⣿£¿
JS Îļþ
var test={
show:function(){
var userifo=new Array();
userifo.push(1);
userifo.push(2);
userifo.push(3);
//alert("aaa");
$.ajax({
type :'POST',
url :"http://localhost/test/test1.php",
data :'aa',
dataType :'json',
async :false,
success : function(server) {
alert("bbb");
}
});
}
}
test.php Îļþ
<html>
<script type="text/javascript" src="./js/test.js"> </script>
<script type="text/javascript" src="./js/jquery-1.3.2.min.js"> </script>
<script type="text/javascript">
</script>
<body onload="test.show()">
this is my test!
</body>
</html>
test1.php
<?
echo "aaa";
?>
Ŀ¼ test ÏÂtest.php test1.php
ÏÂÒ»¼¶ js ÏÂjquery1.32.min.js test.js
Ϊʲǫ̂û·´Ó¦£¿ Ó¦¸ÃÊÇÄijöÎÊÌâÁË£¿
ÔõôûÈËѽ£¡×Ô¼º¶¥£¡
Ïà¹ØÎÊ´ð£º
¾¹ýÒ»¸öÐÇÆÚµÄ²»¶ÏŬÁ¦£¬ÎҵĻùÓÚAjaxµÄ¸öÈ˲©¿ÍÖÕÓÚ¿ÉÒÔÕýʽÉÏÏßÁË¡£
ÏÖÔÚÉ¢·Ö½ÓÊܸ÷λ´óÏÀµÄ±ÉÊÓ¡£
ÍøÖ· www.bleehome.cn BLEE HOME
(±¾À´Ïë¶àÉ¢µã£¬µ«ËµÎÒÖ»ÄÜÉ¢100.Õâ¸öµ½Ê±ÔÙÏëÏë°ì·¨)
~j ......
var xmlHttp = null;
function Getxmlhttp()
{
var url = "update.php";
if (xmlHttp == null)
{
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
&n ......
ÎÒÔÚwebRoot££¾idc££¾report££¾report_add.jspÒ³ÃæÖÐÓÃajaxÌá½»µ½action×ÜÊDZ¨Õâ´í
140 ERROR RequestProcessor:664 - Invalid path /idc/report/report/report_distb was requested
ÕÒ²»³öÔÒò,ÎÒÓÖÔÚн¨ ......
Ò»¸öButton
Ò»¸öModalPopupExtender
Ò»¸öPanel
ÎÊÌâÊÇÕâÑùµÄ£ºÔÚ×öÐÞ¸Äʱºò µ±µãÐÞ¸ÄButton Panel ÏÔʾÁËÒ²ÓÐÒõӰЧ¹û£»
µ«ÊÇÎÒÐÞ¸ÄButtonÓÐbtn_Update_Clickʼþ£¬ÕâʼþÊǰó¶¨Êý¾ÝµÄ£»
ÏÖÔÚµÄÐ ......
Ò»htmlÒ³ÃæÊý¾ÝÈçÏ£º
<ul>
<li>aaa </li>
<li>bbb </li>
<li>ccc </li>
</ul>
ͨ¹ýJQµÄajax·½·¨Ö®ºó£¬µÃµ½µÄ¾¹È»±ä³ÉÁË£º
......