jQuery ajaxÌá½»±íµ¥Êý¾ÝÎÊÌâ¼±£¡ - Web ¿ª·¢ / Ajax
ÓÃAjaxÌá½»±íµ¥Êý¾Ý½øÐÐÑéÖ¤ µÚÒ»´Îºǫ́¿ÉÒÔ»ñÈ¡µ½ ÑéÖ¤ÍêÁËÐ޸ĺóÔÚÌá½»£¬ºǫ́¾ÍµÃ²»µ½Êý¾ÝÁË ÎªÊ²Ã´
JScript code:
var succ='false';
jQuery("#adDtailForm").ajaxSubmit({
url: "<%=request.getContextPath()%>/budgetDirectReserve.do? method=provAjaxDirectRev&rowCountnum="+count+"&year=<%=year%>&time="+timesss,
type:'POST',
success:function(msg)
{
if(msg!=null||msg!="")
{ //Ñé֤ûͨ¹ý²»¿ÉÒÔÌá½»Êý¾ÝµÄ ·µ»ØµÄλÖÃ
alert("ÌáʾÐÅÏ¢£º"+msg);
return false;
}else{
succ='true';
}
}
});
ÊÔÊÔ
JScript code:
url: "<%=request.getContextPath()%>/budgetDirectReserve.do?method=provAjaxDirectRev&rowCountnum="+count+"&year=<%=year%>&time="+timesss + "&tmp=" + (new Date()),
CSS code
Code highlighting produced by Actipro CodeHighli
Ïà¹ØÎÊ´ð£º
ÎÒÏÖÔÚÓÃstruts2¿ò¼ÜÖÐÐèҪʹÓÃajaxʵÏÖ¾Ö²¿Ë¢Ð£¬µ«ÊÇ´ÓÈÝÆ÷Àï·µ»ØµÄÖµ²»ÖªµÀÔõô´Óstruts.xmlÅäÖÃÎļþÀïÓ³Éäµ½jspÒ³ÃæÀÒÔÇ°servletÀïдout.orint("xxxxx")¾Í¿ÉÒԵõ½~£¬µ«ÊÇÏÖÔÚÓÃstruts¾Í²»ÖªµÀÔõô ......
ÎÒÏÖÔÚÓиöÃÅ»§ÍøÕ¾£¬ÓÃStruts1.2×öµÄ£¬Ö®Ç°Ã»ÓÃajax,ÏÖÔÚÏë½áºÏajax ¿ò¼Ü ÕûºÏÉý¼¶¡£
Struts1.2 ºÍÄǸöajax ¿ò¼ÜÕûºÏµÄ±È½ÏºÃ¡£ÕûºÏÖ®ºóÌý˵ajax Õ¼ÄÚ´æʲô¶¼²»Ð¡£¬°üÒ²²»Ð¡£¬´ó¼ÒÌÖÂÛһϰ¡¡£
ajax ÊÇ¿Í»§¶ËµÄ¶ ......
RT£¡
xmlHttpRequest.send("Ìá½»²ÎÊýÃû=Öµ&Ìá½»²ÎÊýÃû1=Öµ");
var date={"Êý¾Ý1":"Êý¾Ý1Öµ","Êý¾Ý2":"Êý¾Ý2Öµ","Êý¾Ý3":"Êý¾Ý3Öµ" ......
a.asp
------------------------------------------------<SCRIPT language=javascript src="check.js"></SCRIPT>
<input type="button" value="²âÊÔ" onclick=&quo ......
ʹÓÃ.net 3.5 ×Ô´øµÄajax¿Ø¼þ£¬ÔÚIE7¡¢IE8ÏÂÌáʾ ajax¿ò¼ÜÎÞ·¨¼ÓÔØ
Ò³Ãæ½á¹¹ÈçÏ£º
HTML code:
<form id="form1" runat="server">
<asp:ScriptManager ID="SM&quo ......