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

ÈçºÎ¼¯³ÉajaxÓëstructµÄÓŵã

ajax£¬²»ÓÃˢУ¬ÎÒºÜϲ»¶£¬ÎÒÏÖÔÚдҳÃæʱ£¬Ö»Òª²»ÊÇתҳ£¬ÎÒ¶¼Ê¹ÓÃajax£¬¿ÉÊÇÕâÑùÓëstruct£¬ÓгåÍ»¡£

ÕâÑùµÄ»°£¬structµÄactionÓëformbeanÀ඼Óò»×ÅÁË£¿

ÎÊÌâ1£º

µ±Ìá½»ºÜ¶àÊý¾Ýʱ£¬±È·½ËµÓÐÓû§Ãû¡¢µç»°¡¢ÁªÏµÈË¡¢×ÊÁÏ¡¢Ç©Ãû¡£¡£¡£ÎÒʹÓÃajaxʱ£¬Ö»ÄÜÒ»¸öÒ»¸ö×ֶεĴ«£¬²»ÄÜ·â×°³É¶ÔÏóÁË¡£¡£¡£ ÕâÑùµÄÎÊÌâÊÇ×ֶκܶàµÄ»°£¬¾ÍºÜ·Ñ¾¢£¨¶øÕâÊÇstructµÄÓÅÊÆ£©

ÎÊÌâ2£º

ÎÒдµÄjava·½·¨£¨±È·½ÐÞ¸ÄijЩ¶«Î÷£©£¬ÐèÒªsession£¬ ʹÓÃstructʱ¿ÉÒÔ´Óexecute·½·¨ÀïµÃµ½session£¬¿ÉÊÇÎÒʹÓÃ×Ô¼ºÐ´µÄ·½·¨£¬²»ÄÜ´øsessionѽ£¨¹Ø¼üÊÇ£ºÒªÊÇ´ø£¬ÎÒÔõô´«?£©,¿ÉÊÇÎÒ±ØÐëÓÃ(µ±È»£¬¿ÉÒÔд¸öÒþ²ØÓò£¬¿ÉÊÇÎÒ×ܸоõÄÇÑù²»°²È«)¡£ÎÒÏëÖªµÀµÄÊÇÈç¹û×Ô¼ºÐ´µÄ·½·¨£¬ÎÒÒªjavascriptÀïÔõô´«session£¨ºÜÔΣ¬¿ÉÄÜÍêÈ«´íÁË£©

Ïò´ó¼ÒÇó½â¡£Ð»Ð»¡£
´ó¼Ò˵ÏÂÄãÃǵÄ×ö·¨°É¡£


ûÓöµ½¹ýÕâÑùµÄÎÊÌ⣬ajaxÖ»ÊÇÓùý£¬²»¹ýÓõIJ»¶à¡£Ö»ÄܰﶥÁË


ajaxÊǺ㬵«ÊDz»ÒªÀÄÓá£

  ÄãÒªÍù Ìá¸ßÓû§ÌåÑéµÄÇé¿ö¿¼ÂÇÏÂÈ¥Óá£

²»ÒªÒòΪajax¶øajax¡£

  Äã¿´¿´ÄÇЩ´óÍøÕ¾¡£±íµ¥µÄÌá½»»¹ÊÇÓõĴ«Í³µÄform¡£

  ÄѵÀËûÃDz»»áajax£¿

Èκμ¼Êõ¶¼ÓÐÓÅȱµã

ÒªÔÚºÏÊʵĵط½ÓúÏÊʵļ¼Êõ



ÒýÓÃ
Ϊʲôajax¾Í²»¿ÉÒÔÓÃformbeanÄØ

ajaxºÍstrutsÆäʵ¸ù±¾Ã»ÓгåÍ»£¬

formbeanµÄÔõô²úÉúµÄÄØ£¬ÎÞ·ÇÊÇÌá½»µÄ²ÎÊýÃûºÍbeanµÄÒ»Ö£¬ÍêÈ«¿ÉÒÔÓá£

actionΪʲôҲÓò»×ÅÄØ£¿

ajaxÎ޷ǾÍÊÇÒì²½ÇëÇó£¬ÕâºÍaction£¨·þÎñÆ÷µÄ¶


Ïà¹ØÎÊ´ð£º

¹ØÓÚAJAXºÍPHPµÄ½»»¥

¿Í»§¶ËÓÃAJAX·¢Ë͹ýÀ´Ò»¸ö×Ö·û´®£¬Ï£ÍûÔÚ·þÎñÆ÷¶ËÓÃxmlÐÎʽ½âÎö³öÀ´£¬¸ÃÔõô×ö°¡£¿£¡
±ÈÈçÎÒ·¢¹ýÀ´µÄ
querystring = " <request> <uid>2008 </uid> </request>"

ÔÚ· ......

ajaxÀïfileuploadÉÏ´«µÄÎÊÌâ






ÓÃasp.netµÄajaxʵÏÖµã»÷ͼһµÃµ¥Ñ¡°´Å¥¡°ÊÇ¡±£¬ÏÔʾͼ¶þµÄÒþ²Øpanel(panelÄÚ°üº¬ÉÏ´«¿Ø¼þ)
panelÒ³Ãæ¼ÓÔØʱÊÇÒþ²ØµÄ
µ«Êǵ±ÌύʱpanelµÄfileuploadÏÔʾûÓÐÎļþ
µ±ÎÒ°ÑpanelµÄvisiab ......

ΪʲôҳÃæÒ»¼ÓÉÏAjax¾Í³ö´í

²é¿´Ô´Îļþʱ³öÀ´µÄ
<script type="text/javascript">
// <![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
    $create(Sys.UI._Upd ......

Õâ¸öAJAXÄÄÀï´íÁËÄØ

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"&g ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ