Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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ÍâÆäËûä¯ÀÀÆ÷¶ÔËüµÄÖ§³Ö²»ÊǺܺá£


Ïà¹ØÎÊ´ð£º

struts2 Ò³ÃæÉÏ ajax responseText ·µ»Ø¿Õ

JScript code:

var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")


function ajaxTest() {

var starttime = document.getElementById(&q ......

Ä£ÄâajaxÉÏ´«Îļþ£¬ÎÞ·¨Çå¿Õform

HTML code:

<form action="<%=request.getContextPath()%>/advertAdd.adp?op=Y" id="addAdvertForm" name="addAdvertForm" method="post" enctype="mult ......

ajax×öµÄ·ÀÖ¹×¢²áÓû§ÃûÏàͬ£¿£¿£¿´«ÖÐÎÄÖµ

ajax×öµÄ·ÀÖ¹×¢²áÓû§ÃûÏàͬ£¿£¿£¿´«ÖÐÎÄÖµ
Ö±½ÓÓÿò¼Ü¾ÍºÜ¼òµ¥ÁË¡£ÀýÈçjsonÖ®ÀàµÄ¡£

Èç¹ûÊÇ×Ô¼ºÐ´£¬×îºÃ°ÑÖÐÎĽøÐÐÒ»ÏÂת»»£¬È»ºóÔÚºǫ́ÔÙת»»»ØÀ´¡£ÕâÑù±È½Ï±£ÏÕ¡£

ÓÃDWR°É

Â¥Ö÷ÖØµãÊÇ¡°ajax×öµÄ·ÀÖ ......

ASP.ENT AJAX¿Í»§¶Ë±à³ÌµÄ»·¾³

×î½üÔÚ¿´³ÂÀè·ò±àÖøµÄ¡¶ASP.NET AJAX ³ÌÐòÉè¼Æ¡·µÚ¶þ¾í£º¿Í»§¶ËMicrosoft AJAX LibraryÓëÒ첽ͨÐŲ㣬£¬£¬¶ÔÓÚÀïÃæµÄʵÀý£¬×Ô¼º²Ù×÷ÆðÀ´À§ÄÑÖØÖØ¡£Ê×ÏÈÊdzöÏÖType£¬Sys䶨Òå¡£ASP.NET AJAX ControlKit£¬ASPAJAXExte ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ