ÓÃAjaxÌá½»±íµ¥Êý¾Ý½øÐÐÑéÖ¤ µÚÒ»´Îºǫ́¿ÉÒÔ»ñÈ¡µ½ ÑéÖ¤ÍêÁËÐ޸ĺóÔÚÌá½»£¬ºǫ́¾ÍµÃ²»µ½Êý¾ÝÁË ÎªÊ²Ã´
JScript code:
var succ='false';
jQuery("#adDtailForm").ajaxSubmit({
url: "<%=request.getContextPath()%>/budgetDirectReserve.do? method=provAjaxDirectRev&row ......
·þÎñÆ÷¶Ë´úÂ룺
<?php
$row = mysql_fetch_array($result, MYSQL_ASSOC);
header("Content-Type: text/xml");
?>
<?xml version="1.0" encoding="gb2312">
<paikeresult>
<classno-value><? echo trim($row['classno']); ?></classno-value>
&l ......
дÁËÒ»¸öExtµÄAjaxʾÀý,ÆäÖе±ÎÒµÄURL¶¨Ïòµ½ServletµÄʱºò,³É¹¦,·µ»ØÕý³£½á¹û,ÓÃfirebug²é¿´"ÏìÓ¦"²¿·Ö,µÃµ½µÄÊÇÒ»¸öjson×Ö·û´®{data : '11111'}
Ò³Ãæµ÷ÓÃ:
JScript code:
var jsonString = Ext.util.JSON.decode(response.responseText);
Ext.MessageBox. ......
ÎÒÓÃHTTPWATCH²é¿´´«Ë͵ÄÏûÏ¢£¬ÔÚÒ»¸ö´°ÌåÀïÍÏÒ»¸öscriptmanagerÈ»ºó´ò¿ªIE´ò¿ªhttpwatch£¬µ«ÊÇÖ»ÓÐÒ»ÌõÇëÇóÏûÏ¢ÄØ£¿¾ÍÊÇÒ³ÃæÇëÇó£¬Ã»ÓÐjsµÄÇëÇóÄØ£¿ÊDz»ÊÇÎÒµÄhttpwatchÓÐʲôÎÒÎÊÌâŶ£¿Ó¦¸ÃÕ¦°ìÄØ£¬¾³£³£¿´µÄʱºòºÍ±ðÈ˲»Ò»Ñù£¬¶¼Ö»ÓÐÒ»Ìõ¡£Ð»Ð»£¡
ºÍ±»È˲»Ò»Ñù¾ÍÊÇÄã»ú×ÓµÄÎÊÌâÁË
ÓÃfirebug¿´¿´°É£¬Õâ¸öÓõøüÊæ·þµ ......
ÎÒÏÖÔÚÓöµ½Õâô¸öÎÊÌ⣬¾ÍÊÇÎÒÏÈÑ¡ÔñÒ»¸öÏÂÀÁÐ±í£¬È»ºó´¥·¢ÁËAJAXÀ´»ñÈ¡Êý¾Ý¿âµÄÊý¾Ý£¬ÎÒ½«·µ»ØµÄÊý¾Ý·Åµ½ÏÂÀÁбíÀȻºóÓÃinnerHTML²åÈëµ½Ò»¸ö<span>ÖУ¬¿ÉÊÇÎÒÔÚÑ¡ÔñÕâ¸öÐÂÉú³ÉµÄÏÂÀÁбíʱ£¬ÎÒ»¹ÏëÔÙ´¥·¢Ò»¸öajax£¬Ëû¾Í²»´¥·¢ÁË
ÔÚÐÂÉú³ÉµÄÏÂÀÁбíÖÐÌí¼ÓÒ»¸öonchangeʼþÀ´´¥·¢ÄãµÄajax
Óеģ¬¿É¾ÍÊDz»´¥· ......
Çë½Ì¸ßÈË£¬AjaxÔÀíÏêϸ½²½â ¼°´úÂë˵Ã÷
ÎÒ²Á£¬ÉÏgoogle°¡¡£
http://www.w3school.com.cn/ajax/index.asp
Â¥Ö÷ʲôÒâͼÄØ£¿
³ö ´¦:http://www.javaeye.com/topic/636187
û×ö¹ýwebÇ°¶Ë£¬ËùÒÔÍêȫûÓÐÓùýJQuery£¬ÒÔÇ°ÒòΪÐËȤ¶ÔjavascriptÉÔ΢¿´¹ýһЩ£¬µ«ÊDz»ÏµÍ³£¬²»ÉîÈ룬¶¼ÊÇdz³¢¶øÖ¹¡£
×î½üÒ»¶ÎÊ ......