AjaxΪʲô²»ÄÜ´¦Àí¸½¼þ£¿form.submit()È´¿ÉÒÔ£¿
AjaxÊÇ»ùÓÚJavaScriptµÄ£¬¶øjs³öÓÚ°²È«¿¼ÂÇÊDz»ÄܲÙ×÷ÎļþµÄ£¬ËùÒÔAjax²»ÄÜÖ±½ÓÉÏ´«¸½¼þ£¬¿ÉÒÔÓÃÆäËû±äͨ·½Ê½ÊµÏÖ¡£
µ«ÊÇAjaxÌá½»Ò²ÊÇ»ùÓÚHTTPÐÒéµÄ£¬ËüÒ²·ÖGETºÍPOSTÌá½»·½Ê½£¬¿ÉÒÔ°Ñ±íµ¥ÄÚÈݷŵ½ÏûÏ¢ÌåÖУ¬ÕâºÍForm.submit()ÊÇÒ»ÑùµÄ£¬ÎªÊ²Ã´ÓÃform.submit()¾Í¿ÉÒÔ´¦Àí¸½¼þ£¬¶øAjax¾Í²»¿ÉÒÔÄØ£¿
ÎÊÌâ¹Ø¼üÊÇÄãÓÃjsÈçºÎ¶ÁÈ¡¿Í»§¶ËÎļþµÄÄÚÈÝ£¿£¿ÓÃjs»ñÈ¡ÄÚÈݿ϶¨´æÔÚȨÏÞÎÊÌâ
ÓÃ±íµ¥µÄinput¿Ø¼þÀ´Ìá½»Îļþʱ£¬»ñÈ¡¿Í»§¶ËÄÚÈÝÊÇä¯ÀÀÆ÷¸ºÔðµÄ£¬¶ø²»ÊÇjsÀ´¸ºÔð
showboÕý½â£¬Èç¹ûÄãÒ»¶¨Òª¸ã¸öÀàËÆÎÞˢеÄÌá½»£¬¿ÉÒÔʹÓÃiframe,µ«ÊdzýÁËieÍâÆäËûä¯ÀÀÆ÷¶ÔËüµÄÖ§³Ö²»ÊǺܺá£
Ïà¹ØÎÊ´ð£º
JScript code:
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
function ajaxTest() {
var starttime = document.getElementById(&q ......
HTML code:
<form action="<%=request.getContextPath()%>/advertAdd.adp?op=Y" id="addAdvertForm" name="addAdvertForm" method="post" enctype="mult ......
ajax×öµÄ·ÀÖ¹×¢²áÓû§ÃûÏàͬ£¿£¿£¿´«ÖÐÎÄÖµ
Ö±½ÓÓÿò¼Ü¾ÍºÜ¼òµ¥ÁË¡£ÀýÈçjsonÖ®ÀàµÄ¡£
Èç¹ûÊÇ×Ô¼ºÐ´£¬×îºÃ°ÑÖÐÎĽøÐÐÒ»ÏÂת»»£¬È»ºóÔÚºǫ́ÔÙת»»»ØÀ´¡£ÕâÑù±È½Ï±£ÏÕ¡£
ÓÃDWR°É
Â¥Ö÷ÖØµãÊÇ¡°ajax×öµÄ·ÀÖ ......
×î½üÔÚ¿´³ÂÀè·ò±àÖøµÄ¡¶ASP.NET AJAX ³ÌÐòÉè¼Æ¡·µÚ¶þ¾í£º¿Í»§¶ËMicrosoft AJAX LibraryÓëÒ첽ͨÐŲ㣬£¬£¬¶ÔÓÚÀïÃæµÄʵÀý£¬×Ô¼º²Ù×÷ÆðÀ´À§ÄÑÖØÖØ¡£Ê×ÏÈÊdzöÏÖType£¬Sys䶨Òå¡£ASP.NET AJAX ControlKit£¬ASPAJAXExte ......