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

Dojo1.3.xµÄAjaxʾÀý


Dojo1.3.x
µÄ
Ajax
ʾÀý
ÕûÀíÈË£º»Æ³Ï
QQ
Ⱥ£º
65643887
ÕâÆªÎÄÕÂÖ÷ÒªÊǰïÖú¶Ô
Dojo
¸ÐÐËȤµÄÅóÓÑÃÇ¿ì
ËÙʵÏÖÍøÕ¾ÉϵÄÀý×Ó¡£
http://sitepen.com/labs/guides/?guide=DojoQuickStart#Ajax
Ëü½Ì³Ì·ÖÁË
3
²¿·Ö£¬ÆäÖеÄÀý×Ó²»ÈÝÒ×
ÉÏÊÖ¡£ÎÒÕâÀïÌṩһ¸ö´ò°üÎļþ
AjaxWithDojo.war
ÏÂÃæÎÒ½«Ïêϸ˵Ã÷²Ù×÷²½Ö裬¼°¶ÔÓ¦Óï·¨½âÊÍ£º
ÅäÖû·¾³£º
eclipse 3.4.x, tomcat6.x,
AjaxWithDojo
.war,Dojo1.3.x
 
ÅäÖÃÔËÐл·¾³¡£
µÚÒ»²½£ºµ¼Èë
AjaxWithDojo.war
File 
-> Import -> Web ->
WAR file
WAR file: Bowse..
ÖÐÕÒµ½
AjaxWithDojo.war
µã
Finish
¾Í¿ÉÒÔÔÚ
Eclipse
Öп´¼ûÎÒÃÇ
µÄ¸Õ²ÅµÄµ¼ÈëµÄÀý×Ó¡£
Õ¹¿ªºóÎÒÃÇ¿ÉÒÔ¿´µ½ËüµÄĿ¼½á¹¹ÈçÏÂͼ£º
ͼ±í
1
.1
µÚ¶þ²½Æô¶¯Ëü¡£
Ñ¡Ôñ
skeleton.tml
ÓÒ
»÷
Run As -> Run On
Server
ÔÚ
How
do you want to select the server?
Ñ¡Ôñ
Manually define a new server
ÔÚ
Server
name:
ÖÐÌîд
AjaxWithDojo
Server runtime environment:
Ñ¡Ôñ
Tomcat v6.0 Server
Èç¹ûûÓеÄÅäÖõϰ£¬¾ÍÔÚºóÃæµÄ
Add…
ÄÇÀïÔö¼ÓÒ»¸ö¡£
ÈçÏÂͼ
2.
 
 
 
1
£º
 
ͼ±í
2.1
 
µã
Finish
³ÌÐò»á×Ô¶¯Æô¶¯¡£
È»ºóÎÒÃÇ»áÔÚ
eclipse
µÄÄÚÖÃä¯ÀÀ
Æ÷Öп´¼ûЧ¹û¡£
 
Óï·¨½âÊÍ
»ñÈ¡Êý¾Ý
ÎÒÓõÄÊÇ
skeleton.html
ÎÄ
¼þÀ´×öÏÂÃæµÄÑÝʾ¡£
ÏÖÔÚÎÒÃÇÀ´·ÖÎö£¬²úÉúµÚÒ»¸öЧ¹ûµÄ
Dojo
´úÂëµÄÓï·¨¡£
//
¶¨ÒåÒ»¸ö
init
³õʼ»¯·½·¨£¬ÒÔ±ãÒ³Ãæ¼ÓÔØºó¾ÍºÃµ÷Óã¬Èç×îºóÒ»¾ä
dojo.addOnLoad(init);
var init = function(){   
        
var contentNode =
dojo.byId("content");//
ÕâÀï¾ÍÊÇ
document.getElementById
µÄ
dojo
ʵÏÖ£¬Ò»ÑùµÄÊÇΪ
ÁË»ñÈ¡
id
Ϊ
content
µÄ
div
±êÇ©
        
//
ÕâÊǸö¾­¹ý
dojo
°ü×°ºóµÄ
xmlhttprequest
¶ÔÏó·½·¨¡£
        
dojo.xhrGet({                   
                 &n


Ïà¹ØÎĵµ£º

µÚÒ»Õ ASP.NET Ajax¼ò½é

µÚÒ»Õ      ASP.NET Ajax¼ò½é
1.1ʲôÊÇAjax
Ò»£®Ê²Ã´ÊÇAjax
AjaxÊÇAsynchronous JavaScript and XML(Òì²½JavaScript ºÍXML)µÄËõд£¬ÓÉÖøÃûÓû§ÌåÑéר¼ÒJesse-James GarrettÔÚ2005Äê2ÔÂ18ÈÕ·¢±íµÄһƪÃûΪAjax:a New Approach to Web ApplicationsÎÄÕÂÖÐÊ×ÏÈÌá³ö¡£
Ajax²¢²»ÊÇÖ»°üº¬JavaScri ......

ASP.NET AJAX ½Ìѧ±Ê¼Ç(Èý) 2

3.4Àí½â¼Ì³Ð
Ò»£®»ùÓÚÔ­Ð͵ļ̳Уº  
²½Ö裺
(1)ÔÚ×ÓÀ๹Ô캯ÊýÖе÷ÓûùÀ๹Ô캯Êý£¬´Ó¶ø¼Ì³Ð»ùÀàµÄÊôÐÔ¡£
(2)½«»ùÀàµÄÒ»¸öÐÂʵÀý¸³¸ø×ÓÀ࣬´Ó¶ø¼Ì³Ð»ùÀàµÄ·½·¨¡£
 Samples.Cat=function() 
  {
     Samples.Pet.call(this);
   }
   Sample ......

2.1Microsoft Ajax LibraryËÙÀÀ£º

2.1Microsoft Ajax LibraryËÙÀÀ£º
Microsoft Ajax LibraryÊÇÒ»×é¿ÉÒÔä¯ÀÀÆ÷¶Ë¶ÀÁ¢ÔËÐеÄJavaScriptº¯Êý¿â£¬°üº¬ÍøÒ³ºËÐÄ·þÎñÒÔ¼°Ìṩä¯ÀÀÆ÷µÄXMLÔ¶³ÌÊý¾Ý´æÈ¡ÄÜÁ¦¡£
Ö§³ÖµÄä¯ÀÀÆ÷ÓУºIE¡¢Mozilla¡¢Firefox¡¢Apple Safari¡£
2.1.2ÔÚASP.NETÒ³ÃæÖÐÔö¼ÓAjaxÖ§³Ö
   Ajax LibraryÊÇרΪAjax¹¦ÄÜÌṩµÄScript£¬ËüÊ ......

¹ØÓÚJSPÒ³ÃæÓÃUTF 8±àÂëAJAXʧЧµÄÎÊÌâ

ÔÚÒ»¸öÏîÄ¿Öзּ¶Ñ¡ÔñÐÐÕþÇø»®Ê±Óõ½AJAX½øÐÐÎÞˢм¶Áª£¬ÎÒÔÚÒ³ÃæÖбàÂëÓõÄÊÇUTF-8£¬×ÜÊDZ¨½Å±¾´íÎó£¬
ÎÒ°ÑÒ³Ãæ±àÂë»»³ÉGBKÓÖÊÇÕý³£µÄ£¬ºóÀ´ÔÚÍøÉÏËÑË÷ÁËһϣ¬ÔÚÒýÈëJSʱ¼ÓÈë±àÂë¾Í¿ÉÒÔÁË£¬ÈçÏ£º
<script language="Javascript" src="js/jquery.js" charset="gb2312"></script> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ