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

Ààajax jsp ÎÞË¢ÐÂÉÏ´«Îļþ


  Ê×ÏÈҪ˵µÄ¾ÍÊÇ ajax ÊÇÎÞ·¨ÊµÏÖÉÏ´«ÎļþµÄ£¬¿ÉÒÔÏëÒ»ÏÂajaxÓëºǫ́ͨÐŶ¼ÊÇͨ¹ý´«µÝ×Ö·û´®£¬ÔõôÄÜ´«µÝÎļþÄØ£¿Æäʵ³öÓÚ°²È«¿¼ÂÇjsÊDz»ÄܲÙ×÷ÎļþµÄ£¬ËùÒԾͲ»ÒªÔÙ˵ÓÃajaxÀ´ÊµÏÖÎļþµÄÉÏ´«ÁË£¬ÕâÊDz»¿ÉÄܵġ£
    ¶ø±¾ÎÄʵÏÖµÄÎļþÉÏ´«Ò²ÊÇÎÞÒ³Ãæˢеģ¬¿ÉÒÔ˵ÊÇÒ»ÖÖ"ÀàËÆAJAX"·½·¨¡£
    ¿ªÊ¼Ö®Ç°ÏÈ˵Á½¾äÎ޹صģ¬ÆäʵÔÚajax³öÏÖ֮ǰ£¬webÓ¦ÓÃÒ²¿ÉÒÔÊÇÎÞˢеģ¬ÄÇʱ´ó¶àͨ¹ýIFrameÀ´×öµ½ÕâÒ»µã¡£µ±È»Ajax³öÏÖÖ®ºó£¬ÈËÃÇÒ»ÎÑ·äµØͶ±¼Ajax µÄÕóÓªÁË£¬iFrame ¾Í·¦ÈËÎʽòÁË¡£µ«ÊÇÓÃiFrameÀ´ÊµÏÖÎÞË¢ÐÂÉÏ´«Îļþȷʵһ¸öºÜºÃµÄÑ¡Ôñ¡£ps£ºAjax¼¼Êõ»ù±¾ÉÏ¿ÉÒÔ˵ÊÇÓÉgoogle¹«Ë¾´øÆðÀ´µÄ£¬µ«ÉÙGmailÖÐÉÏ´«ÎļþÓõĻ¹ÊÇ IFrame£¬ËùÒÔ˵ʹÓÃIFrameÀ´ÉÏ´«ÎļþÊÇ×îºÃµÄÑ¡Ôñ¡£
    ÎÒÔÚÕâÀïÕâÀïÓõļ¼ÊõÊÇjsp£¬Æäʵasp£¬phpµÈÒ²ÊÇÒ»Ñù¿ÉÒÔÕâôʵÏÖµÄ
    Ò»¹²Á½¸öÎļþ¾Í¿ÉʵÏÖ£ºindex.html ºÍ upload.jsp£¬ÔÚÕâÀï½²½âһϣ¬Îĺó»á¸½ÉÏÔ´Âë
--index.html
html ´úÂë
£¼html£¾
£¼body£¾

£¼form action="upload.jsp" id="form1" name="form1" encType="multipart/form-data" method="post" target="hidden_frame" £¾
£¼input type="file" id="file" name="file" style="width:450"£¾
£¼INPUT type="submit" value="ÉÏ´«Îļþ"£¾£¼span id="msg"£¾£¼/span£¾
£¼br£¾
£¼font color="red"£¾Ö§³ÖJPG,JPEG,GIF,BMP,SWF,RMVB,RM,AVIÎļþµÄÉÏ´«£¼/font£¾
£¼iframe name='hidden_frame' id="hidden_frame" style='display:none'£¾£¼/iframe£¾
£¼/form£¾

£¼/body£¾
£¼/html£¾

£¼script type="text/javascript"£¾
function callback(msg)
{
document.getElementById("file").outerHTML = document.getElementById("file").outerHTML;
document.getElementById("msg").innerHTML = "£¼font color=red£¾"+msg+"£¼/font£¾";
}
£¼/script£¾

 index.html ÖÐÖ÷ÒªÒª×öµÄ¾ÍÊÇдһ¸ö form ºÍ iframe £¬²¢°Ñ form µÄ target ÉèΪ iframe µÄÃû×Ö£¬×¢ÒâÒª°Ñ iframe ÉèΪ²»¿É¼û£¬ÆäËûµÄ¶¼ÊÇÕý³£µÄÎļþÉÏ´«µÄд·¨£¬ÕâÑùˢеÄÒ³Ãæ¾ÍÊÇÕâ¸öÒþ²ØµÄ Iframe £¬¶øÔÚ index.html ÖÐÊDz»»áÓÐÒ³Ãæˢеģ¬jsµÄ callback ·½·¨Êǻص÷·½·¨¡£ÓÃÓÚÇå¿ÕÎļþ


Ïà¹ØÎĵµ£º

½â¾öÓйØExt Gridµ¼³öExcelÔÚJSPµÈ»·¾³Öв»¿ÉÓõÄÎÊÌâ


http://www.ajaxbbs.net/post/extjs/10.html
ÓйØExtGridµ¼³öExcelµÄʵÏÖ·½Ê½£¬ÍøÉÏÒѾ­Óкܶ࣬¹Ù·½Ò²¸ø³öÁËÒ»¸ö·½°¸£¬´úÂë²»ÊǺÜÍêÉÆ£¬²»¹ýÒѾ­ÓиßÈ˶ÔÕâ¸ö½øÐÐÁËÐÞÕý¡£¾ßÌåʵÏÖ·½Ê½¼°´úÂëÎÒÕâÀï¾Í²»ÔÙ¶à˵ÁË£¬´ó¼Ò¿ÉÒԲο´£º
http://www.dojochina.com/index.php?q=node/1254
£¬¸½¼þ£º
gridToExcel.js.txt
Æä»ù± ......

JSPÖÐÎÄÁ´½Ó/tomcatÖÐÎÄ·¾¶


WEB½øÐÐÉÏ´«ÖÐÎÄÎļþÃûµÄÎļþʱûÎÊÌ⣬µ«ÏÂÔصÄʱºò³öÏÖÎÊÌ⣬¾­¹ýÒ»·¬²éÕÒÖ®ºóÔ­À´ÊÇTOMCATĬÈϲ»Ö§³ÖÖÐÎÄ·¾¶ºÍÖÐÎÄÎļþ£¬Èç¹ûÖ±½Ó´ÓApacheÕ¾µãÖÐÏÂÔØTomcat£¬ÎÞÂÛÊÇ°²×°°æµÄexeÎļþ£¬»¹ÊÇ
½âѹËõµÄZIPÎļþ£¬ÄÚÖõĶÔÓÚgetЭÒéÖеÄURL±àÂ붼ÊÇISO-8859-1,Õâ¸ö×Ö·û¼¯²»ÄÜÖ±½ÓÖ§³ÖÖÐÎĵÈË«×Ö½ÚµÄÐÅÏ¢£¬¶øÖÐÎÄÎļþµÄÏÂÔØ ......

JSPÖÐʹÓÃXMLʵÏÖµ¯³öʽ²Ëµ¥

Ó¦ÓÃJSP£¬XMLºÍCSS¼¼ÊõʵÏÖµ¯³öʽ²Ëµ¥µÄ¹¤³Ì¿ò¼Ü¡£
  ×ۺϲÉÓÃJSP£¬JavaBean£¬XML£¬XSL£¬CSS£¬JavaScript¶àÏî¼¼ÊõµÄÓŵ㡣
  ÔÚJSPÖÐʹÓÃXMLÎĵµ£¬XML¶¨ÒåÊý¾Ý¸ñʽ£¬ÔÚJSPÖÐÖ±½ÓÉú³ÉXMLÎļþ£¬ËüÓëJavaBean½»»¥£¬JavaBean¸ºÔð¶ÁÈ¡´æ´¢²Ëµ¥ÏîµÄÎļþ¡£
XSLʵÏÖXMLµ½HTMLµÄת»¯£¬CSSÎļþ¸ºÔðÑùʽµ¥µÄ¶¨Ò壬¶øJavaS ......

AJAX.MVC¿ò¼ÜÉè¼Æ³ÂÊö 1£©AJAX½»»¥Éè¼Æ

Ç°ºó¶ËµÄ½»»¥ÊÇÕû¸ö¿ò¼ÜµÄÖÐÐÄ£¬ÎÒÏ£Íû´ÓÁ÷µÄ½Ç¶ÈÀ´Éè¼ÆAJAXµÄ½»»¥
AJAXµÄÉè¼Æ½«ºá¹áÇ°ºó¶Ë
Ç°¶ËÊÇÖ÷¶¯
ºó¶ËÊDZ»¶¯
ÕûÌ忼ÂǵĻ° Ç°ºó¶ËʹÓÃÒ»¸öͳһµÄ½Ó¿Ú½øÐÐAJAX½»»¥
ºó¶Ë ÓÃÒ»¸öΨһµÄURLÀ´´¦Àí AJAXÇëÇó
½Ó¿ÚÃû³Æ     ´¦Àí½Ó¿Ú£º[http://ÓòÃû/mvc.ajax]  ·â×°ËùÓеÄAJAXÇëÇóµÄÔ¤´¦Àí
......

baiduÊÇÈçºÎAJAX¿çÓòµÄ

×î½ü×ö¸öÈËÍøÕ¾Óöµ½AJAX¿ç×ÓÓòÃûµÄÎÊÌâ¡£
ż¶û¿´µ½baiduµÄͨÐÐÖ¤´¦Àí¶¼ÊÇÔÚ¶þ¼¶ÓòÃûpassport.baidu.comÖд¦ÀíµÄ£¬
µ«ÊÇbaiduºÜ¶àµØ·½µÇ¼¶¼ºÃÏñÊÇÓÃajax´¦ÀíµÄ£¬ËûÊÇÔõô×öµÄÄØ£¿Ñо¿ÁËһϣ¬·¢ÏÖÒ»¸öС¼¼ÇÉ¡£
²»·ÀÈôó¼ÒÒ²½è¼øһϡ£
ÔÚhttp://zhidao.baidu.com/ δµÇ¼Óû§»Ø´ðÎÊÌâʱ»áÓÃiframeµ÷ÓÃhttp://zhidao.bai ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ