ÈçºÎ¼¯³É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·¢Ë͹ýÀ´Ò»¸ö×Ö·û´®£¬Ï£ÍûÔÚ·þÎñÆ÷¶ËÓÃxmlÐÎʽ½âÎö³öÀ´£¬¸ÃÔõô×ö°¡£¿£¡
±ÈÈçÎÒ·¢¹ýÀ´µÄ
querystring = " <request> <uid>2008 </uid> </request>"
ÔÚ· ......
ÓÃasp.netµÄajaxʵÏÖµã»÷ͼһµÃµ¥Ñ¡°´Å¥¡°ÊÇ¡±£¬ÏÔʾͼ¶þµÄÒþ²Øpanel(panelÄÚ°üº¬ÉÏ´«¿Ø¼þ)
panelÒ³Ãæ¼ÓÔØʱÊÇÒþ²ØµÄ
µ«Êǵ±ÌύʱpanelµÄfileuploadÏÔʾûÓÐÎļþ
µ±ÎÒ°ÑpanelµÄvisiab ......
²é¿´Ô´Îļþʱ³öÀ´µÄ
<script type="text/javascript">
// <![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(Sys.UI._Upd ......
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"&g ......