Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

JSON JavaÓëAJAX(Jquery)

Ò»¡¢JSON ÊÇʲô£¿
JSON µÄÈ«³ÆÊÇJavaScript Object Notation£¬ÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ¡£
JSON ÓëXML ¾ßÓÐÏàͬµÄÌØÐÔ£¬ÀýÈçÒ×ÓÚÈ˱àдºÍÔĶÁ£¬Ò×ÓÚ»úÆ÷Éú³ÉºÍ½âÎö¡£µ«ÊÇJSON ±È
XML Êý¾Ý´«ÊäµÄÓÐЧÐÔÒª¸ß³öºÜ¶à¡£JSON ÍêÈ«¶ÀÁ¢Óë±à³ÌÓïÑÔ£¬Ê¹ÓÃÎı¾¸ñʽ±£´æ¡£
JSON Êý¾ÝÓÐÁ½Öֽṹ£º
• Name-Value ¶Ô¹¹³ÉµÄ¼¯ ......

AJAX Follow Me

×î½üÍøÉÏÌáµÄºÜ¶àµÄÒ»¸öиÅÄî¾ÍÊÇ AJAX ÁË, ÄÇô, AJAX ÊÇʲôÄØ? ÒÔÏÂÄÚÈÝÒýÓÃÍøÉÏ×ÊÁÏ:
AJAXÈ«³ÆΪ“Asynchronous JavaScript and XML”£¨Òì²½JavaScriptºÍXML£©£¬ÊÇÖ¸Ò»ÖÖ´´½¨½»»¥Ê½ÍøÒ³Ó¦ÓõÄÍøÒ³¿ª·¢¼¼Êõ¡£ËüÓлúµØ°üº¬ÁËÒÔϼ¸ÖÖ¼¼Êõ£º
Ajax£¨Asynchronous JavaScript + XML£©µÄ¶¨Òå
»ùÓÚ web±ê×¼£¨sta ......

AjaxʹÓÃʾÀý

/***************************by
garcon1986********************************/
Index.php:
<script type="text/javascript" src="ajax.js" ></script>
<a href="#" onclick="funphp('S')" >S</a>
<a href="for.php?url=E" >E</ ......

¡¾Ñ§Ð£È«¾Ö¹¤¾ßÌõ¡¿¹«¸æÄ£¿é(jquery¡¢ajax¡¢php)

ÏîÄ¿ÉèÏë
ѧУ¸÷²¿ÃŵÄÍøÕ¾²¢·ÇÓõÄÒ»Ì×cmsϵͳ£¬ÐÐÕþ²¿ÃÅÓë¶þ¼¶Ñ§ÔºµÄÍøÕ¾ÊýÁ¿ÖÚ¶àÇÒ¿ª·¢ÈËÔ±µÄˮƽ²Î²î²»Æ룬µ¼ÖÂÐÅÏ¢¼Ü¹¹±È½Ï»ìÂÒ¡£Í¨¹ýÒ»¸öÈ«¾ÖµÄ¹¤¾ßÌõʵÏÖȫУվµãÁ´½ÓÓ빫¸æ¶¯Ì¬¸üУ¨ÄÜÔÚÈκÎÒ»¸ö×ÓÕ¾µã¿´µ½×îÐµĹ«¸æ£©µÄ¹¦ÄÜ¡£
¹«¸æÄ£¿éÊý¾Ý¿âÉè¼Æ(Êý¾Ý¿â:globaltools)
Ê×ÏÈ´´½¨Ò»¸ö±íannouncement£¬°üÀ¨Ëĸö× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ