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

Ajax ûÓÐȨÏÞµÄÎÊÌâ

ËÑÁË£¬ËµÊÇ¿çÓòµÄÎÊÌ⣬¿ÉÊÇÎÒ¿çÓòÁËÂð£¿
url="getcustomer.asp";//ûÓÐÓòѽ£¿
test.html·ÃÎÊjsÎļþ£¬Èç¹û¶¼²¿ÊðÔÚiisÏ£¬Ã»ÎÊÌâ
¿ÉÊÇ£¬Èç¹ûtest.html²»²¿Ê𣬾ÍÊÇÖ±½Óµã»÷test.html´ò¿ª¾Í»á³öÏÖȨÏÞÎÊÌâ
Ôõô½â¾öÄØ£¿
²»ÖªµÀ£¬×Ô¼ºÐ´µÄajax¾Í³ö³öÏÖ´ËÎÊÌ⣬
ʹÓÃjqueryµÄajaxÓ¦¸Ã²»»á³öÏÖ´ËÎÊÌâÁË

²»ÊÇ.aspÎļþô£¿ÔõôÊǼÓÔØjs£¿²»Ì«Çå³þ¡°Ö±½Óµã»÷test.html¡±ÊÇʲôÒâ˼£¬¿ÉÊÇÔÚ±¾»úÖ±½Ó´ò¿ª¼ÓÔØjsµÄÎļþ¾Í»áÓÐѯÎÊÊÇ·ñÔËÐÐjsµÄÌáʾ°¢£¬Õâ¸öÊÇ»ùÓÚ°²È«µÄ¿¼ÂÇ¡£

Çë½Ì£¬ÎÒ¾ÍÊÇÏë°Ñtest.htmlǶÈë±ðµÄϵͳ£¬±ÈÈçDomino notes£¬¶ø²»ÊDz¿ÊðÔÚiis

ÎÒÊÇÍêÈ«²»¶®Domino notes£¬²»¹ýÎÒÓÃflex»òjava awt¼ÓÔØhtmlÒ³Ã涼ÍêȫûÓÐÎÊÌ⣬ÎÒÏëÕâ¸ö¸úDomino notes×ÔÉíµÄÌØÐÔÓйØϵ°É¡£Äã²»·Á´ÓÍøÉÏÕÒ¸öÏֳɵÄsample¿´¿´£¬Èç¹ûDomino notesÊÇÊÕ·ÑÈí¼þµÄ»°ÄÇô¾ÍÓ¦¸ÃÓÐÏà¹ØµÄsample¡£

ÒýÓÃ
Çë½Ì£¬ÎÒ¾ÍÊÇÏë°Ñtest.htmlǶÈë±ðµÄϵͳ£¬±ÈÈçDomino notes£¬¶ø²»ÊDz¿ÊðÔÚiis


ÕâÑùû°ì·¨·ÃÎÊ£¬Ö»ÄÜͨ¹ý±¾Õ¾µÄ·þÎñ¶Ë¶ÁÈ¡¡£ÒªÃ´¾Í°ÑÒ³Ãæ·ÅÈëIISÄÚ

.asp±ØÐëÓзþÎñÆ÷²ÅÄܱ»½âÎö³Éhtmlѽ,û·þÎñÆ÷Ôõô·ÃÎÊ?urlµÄÖµ±ØÐëÊÇ¿É·ÃÎʵÄweb×ÊÔ´


Ïà¹ØÎÊ´ð£º

AjaxÓëSessionµÄÎÊÌâ - .NET¼¼Êõ / ASP.NET

֮ǰÓöµ½Ò»¸öÎÊÌâ¡£
ÓÚÊÇ×öÁËÒÔÏÂʵÑ飺
Ò³Ãæ¼ÓÔغó£¬Ìá½»Ò»¸öAjaxÇëÇó(ÔݳÆΪajax1)£¬ÇëÇóµÄÏß³ÌÔÚ·þÎñÆ÷Éϱ»Ë¯Ãß10ÃëÖÓ¡£
µã»÷Ò³ÃæÉÏÒ»¸öbutton£¬´¥·¢ÁíÒ»¸öAjaxÇëÇó(ajax2)¡£
µ±Ã»ÓÐʹÓÃsession£¬ÔÚ·þÎñÆ÷δ´ ......

Visual Web Developer 2008°²×°AJAXÎÊÌ⣡°ï°ïæ°¡£¡

Çë¸ç¸ç½ã½ãµÜµÜÃÃÃÃÊåÊå°¢ÒÌÃÇ°ï°ïæ
ÎÒÓö¼ûÁËÒ»¸ö¸úÄúÒ»ÑùµÄÎÊÌ⣬¾ÍÊÇÎÒµÄ Visual Web Developer 2008 ¼òÌå°æ °²×°AJAXµÄʱºòÒ²³öÏÖÎÊÌ⣬ÎÒÏÂÔØAjaxControlToolkit
ÁËÒ²½âѹÁË£¬µ«ÊÇûÓа²×°AspAjaxExtSetu ......

ajax È¡²»µ½Êý¾Ý

http://localhost:8080/xx/zz.do  ÏÔʾ outµÄ xml Êý¾Ý

xml.open("GET",arguments[0],true);// arguments[0]ÊÇ /xx/zz.do

xml.send();

alert(arguments[0]);//Õâ±ßÓÐ

x ......

100·Ö£¡ajaxÇëÇó´íÎó

C# code:

<script type="text/javascript">
window.onload=function()
{
startRequest('get','../College.ashx','lxyc=2&time='+new Date().getTime()+'',ShowIt,true);
}
var xml ......

Hibernate+spting+struts+ajax ÕûºÏÎÊÌâ

´ó¼ÒºÃ£¬Çë¸ßÊÖÃÇÖ¸µã
ÎÒµÄservletÎļþÊÇ£º
package com.ljc.rank.ajax;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ