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
Ïà¹ØÎÊ´ð£º
°´Å¥·ÅÔÚUpdatePanel1£¬Ïëͨ¹ýµã»÷µ÷ÓÃDictionaryTvAdd.aspxµ¯³öÒ»¸ö×Ó´°Ìå
ÓÃÏÂÃæµÄÓï¾äÌáʾÎÒȱÉÙ¶ÔÏó
protected void Button1_Click(object sender, EventArgs e)
{
ScriptManager.R ......
ÎÒÅóÓѵÄÒ»¸öASP.NETÒýÓÃÁËajax¼¼Êõ£¬binĿ¼ÏÂÃæÒ²ÓÐajaxpro.dll£¬ÎªÊ²Ã´·þÎñÆ÷²»ÐèÒª°²×°ajax²å¼þÒ²¿ÉÒÔÔËÐÐÄØ£¬ÕÕÀí˵Ӧ¸ÃÒª°²×°ASPAJAXExtSetup.msi
ÓÐ ajaxpro.dll¾Í¿ÉÒÔÁË
²»Í¬µÄaajx×é¼þ
AjaxPro¾ÍÊÇ¿ò¼ ......
HTML code:
<tr>
<td valign="top" height="100%" id="TD1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat=&q ......
ÔÚ±¾µØ²âÊÔʱ¿ÉÒԵġ£
ÉÏ´«µ½·þÎñÆ÷¾Í³öÏÖûÓÐȨÏÞÎÊÌâ¡£
ÍøÉÏËÑË÷˵²»Äܹ»¿çÓò£¬µ«ÊÇÎÒûÓпçÓò°¡£¡
¶¼ÊÇÔÚ·þÎñÆ÷ÉÏÃæÔõô»áÓпçÓòÄØ£¿
¸ÃÔõô½â¾ö£¿£¿£¿£¿£¿£¿
´úÂëÌù³öÀ´¡£¡£
function Ajax(url,parm,fu ......
ÎÊÌâ: ÏÖÔÚÌá½»Ö®ºó¾Í²»ÄÜÌøµ½ajax.jsÖÐÖ¸¶¨µÄservlet
¶øÊÇÓÖÖØнøÈëµ½ÁËpub_hotel_t.jspÒ³Ãæ. Ò²¾ÍÊÇûÓÐÖ´Ðе½ajaxÀïÃæÈ¥ ´ó¼Ò°ïæ¿´¿´ÊÇʲôÔÒò°É.
ÊDz»ÊǺÍÌá½»µÄ°´Å¦ÓйØÄ ......