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

AjaxÌØЧ ¸ù¾ÝÓÊÕþ±àÂë»ñÈ¡µØÇøÐÅÏ¢ Ö®ËÄ

·þÎñÆ÷¶ËÏìÓ¦Îļþpostalcode.jsp
·þÎñÆ÷ÏìÓ¦Îļþ¸ù¾ÝÓû§ÊäÈëµÄÓÊÕþ±àÂ룬´ÓÊý¾Ý¿âÖвéѯ¶ÔÓ¦µÄµØÇøÐÅÏ¢¡£Èç¹ûûÓÐÈ¡µ½£¬Ôò·µ»Ø¿Õ×Ö·û´®¡£
 
<%@ page contentType="text/plain; charset=UTF-8"%>
<%@ page language="java"%>
<%@ page import="java.sql.*,ajax.db.DBUtils"%>
<%!
    //¸ù¾Ý´«ÈëµÄÓʱà»ñÈ¡µØÇøÐÅÏ¢
    String getAreaInfo(String postalCode) {
        String areaInfo = null;
 
        //¶¨Òå²éѯÊý¾Ý¿âµÄSQLÓï¾ä
        String sql = "select * from postalcode where code like ?";
        Connection conn = null;                                            //ÉùÃ÷Connection¶ÔÏó
        PreparedStatement pstmt = null;                                     //ÉùÃ÷PreparedStatement¶ÔÏó
        ResultSet rs = null;                                                    //ÉùÃ÷ResultSet¶ÔÏó
        try {
            conn = DBUtils.getConnection();                    //»ñÈ¡Êý¾Ý¿âÁ¬½Ó
 &n


Ïà¹ØÎĵµ£º

ajaxÈýÑÔÁ½Óï(Ö±½Ó½«xmlhttp·µ»ØÖµ½øÐÐjs´úÂë´¦Àí)


ÕâÀïµÄajax¿É²»ÊÇ´óÃû¶¦¶¦µÄajax¾ãÀÖ²¿£¬ ÕâËĸö×ÖĸÔÚÕâÀïAsynchronous JavaScript and XMLµÄËõд¡£Í¨Ë×µØÃèÊöÕâÏî¼¼Êõ¾ÍÊÇ£ºÓà JavaScript Ïò·þÎñÆ÷»ñÈ¡Êý¾Ý£¬È»ºó¸üÐÂÍøÒ³µÄ¾Ö²¿£¬¶ø²»ÊÇË¢ÐÂÕû¸öÍøÒ³¡£
ÕâÏî¼¼Êõ·Ç³£ÊʺÏÓÃÀ´¿ª·¢ÒÔä¯ÀÀÆ÷Ϊ¿Í»§¶ËµÄϵͳµÄ½çÃ棬ʹÓÃajax¸øÓû§´øÀ´µÄ¸üºÃµÄÌåÑ飬ËûÃDz»»á¸Ð¾õµ½ÓÃä¯À ......

AjaxµÄÒì²½ºËÐÄ£ºXMLHTTPRequest

    XMLHTTPRequestÊÇÒÀ¸½ÓÚä¯ÀÀÆ÷µÄÒ»¸ö×é¼þ£¬ä¯ÀÀÆ÷²»Í¬Õë¶ÔµÄ×é¼þÃû³ÆÒ²²»Í¬¡£XMLHTTPRequestÊÇFirefoxÖÐ×é¼þµÄÃû³Æ£¬ÔÚIEÖнÐXMLHTTP¡£“XMLHTTP”ÓÐÁ½¸öÓŵ㣺¾Ö²¿Ë¢Ð¡¢Òì²½¶ÁÈ¡¡£
AjaxµÄʵÏÖ²½Ö裺
1¡¢ ´´½¨Òì²½¶ÔÏó£º
ÔÚIEÖУºvar xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); ......

drupalÄ£¿éÍƼö£ºAJAX Comments

http://drupal.org/project/ajax_comments AJAX Comments View CVS instructions Modules · Content display neochief - December 18, 2008 - 12:44 One of the most wanted Drupal modules :) Module is now depends on Comments bonus API! Features in 6.x: Provides ajax comments to drupal sites. Feature ......

ajax,jqueryѧϰ×ÊÔ´

Ajax
Ò».×ÊÔ´ÀàÍøÕ¾
1,¹úÄÚÍøÕ¾
1)AjaxÖйú(ÍƼö)
Ò»¸öרҵµÄajax¼¼ÊõÍøÕ¾,·ÖÀàÇåÎú,ÓдóÁ¿µÄµç×Ó°æ½Ì³Ì,ÒÔ¼°AJAXÔ´ÂëÏÂÔØ!
www.okajax.com
2)ajaxcn.org
ÀîçûÀÏʦµÄblog¡£Àîçû:¡¶ajaxʵս¡·ÒëÕß.
www.ajaxcn.org
-----------------------------------------
2,¹úÍâÍøÕ¾
1)¡¢AjaxµÄµ®Éú
Ajax:ANewApproachtoWeb ......

AjaxÌØЧ£º¶¯Ì¬¼ÓÔصÄFAQ Ö®Ò»


ͼ1.1  ʵÀýÔËÐÐЧ¹û
1.1.1  ¼¼ÊõÒªµã
¶¯Ì¬¼ÓÔØFAQµÄ¹ý³ÌÖ÷ÒªÊÇÀûÓÃXMLHttpRequest£¨ÒÔϼò³ÆXHR£©¶ÔÏóÓë·þÎñ¶ËͨÐÅ£¬¸ù¾ÝÓû§µ¥»÷µÄ¸ÐÐËȤÎÊÌ⶯̬½«ÄÚÈݼÓÔص½Ò³ÃæÖС£ÔÚ¾ßÌåʵÏÖʱ£¬ÓÐÁ½µãҪעÒâµÄÄÚÈÝ¡£
1£®¶Ôÿ¸öÎÊÌâ½øÐÐΨһ±êʶ
FAQÖ÷Òª°üº¬ÎÊÌâÓë½â´ðÁ½¸ö²¿·Ö£¬Óû§µ¥»÷Ò»¸öÎÊÌâʱ£¬·þÎñÆ÷±ØÐëÖªµÀ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ