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

Ò»¸ö¼òµ¥µÄajaxÇëÇóÀý×Ó

 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
    var http_request=false;
    function testID (username){        
        if(window.XMLHttpRequest){//mozilla
            http_request=new XMLHttpRequest();
        }else{
            http_request=new ActiveXObject("Microsoft.XMLHTTP");
        }
        http_request.onreadystatechange = processRequest;
        http_request.open("POST","../testID",true);//ĬÈÏΪÕæʱ²»¼ÌÐøÖ´ÐÐÏÂÃæµÄ´úÂë
        http_request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
        http_request.send("username="+username);
    }
    // ´¦Àí·µ»ØÐÅÏ¢µÄº¯Êý
    function processRequest() {
         if (http_request.readyState == 4) {//   Åж϶ÔÏó״̬
               if (http_request.status == 200) {//  ÐÅÏ¢ÒѾ­³É¹¦·µ»Ø£¬¿ªÊ¼´¦ÀíÐÅÏ¢
                    alert(http_request.responseText);
               } else {//Ò³Ãæ²»Õý³£
             &nbs


Ïà¹ØÎĵµ£º

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

·þÎñÆ÷¶ËÏìÓ¦Îļþpostalcode.jsp
·þÎñÆ÷ÏìÓ¦Îļþ¸ù¾ÝÓû§ÊäÈëµÄÓÊÕþ±àÂ룬´ÓÊý¾Ý¿âÖвéѯ¶ÔÓ¦µÄµØÇøÐÅÏ¢¡£Èç¹ûûÓÐÈ¡µ½£¬Ôò·µ»Ø¿Õ×Ö·û´®¡£
 
<%@ page contentType="text/plain; charset=UTF-8"%>
<%@ page language="java"%>
<%@ page import="java.sql.*,ajax.db.DBUtils"%>
<%!
  ......

AjaxÌØЧ ¶¯Ì¬Ê÷ÐÎÁбí Ö®Ò»

Ê÷ÐÎÁÐ±í£¨²Ëµ¥£©ÔÚWebÓ¦ÓÃÖÐÊ®·Ö³£¼û£¬Í¨³£Ó¦ÓÃÓÚĿ¼ʽ½á¹¹£¬ÀýÈç²úÆ··ÖÀà¡¢²¿ÃÅ»ú¹¹µÈ¡£´«Í³µÄÊ÷Ðβ˵¥Ö÷ÒªÓÐÁ½ÖÖ¼ÓÔØ·½Ê½£ºÒ»ÖÖÊÇÒ»´ÎÐÔ¼ÓÔØÈ«²¿Êý¾Ý£¬ÁíÒ»ÖÖÊǸù¾ÝÓû§²Ù×÷Öð²½¼ÓÔØÊý¾Ý£¬µ«ÊÇÐèҪˢÐÂÒ³Ã档ǰÕß¼ÓÔØËٶȽÏÂý£¬²¢ÇÒ´æÔÚ´óÁ¿Êý¾ÝûÓб»Ê¹ÓõÄÀË·ÑÇéÐΡ£ºóÕß¿ÉÒÔÖð²½¼ÓÔØ£¬µ«ÊÇƵ·±µØË¢ÐÂÒ³ÃæÔÚ¸øÓû§´øÀ ......

AjaxÌØЧ ¶¯Ì¬Ê÷ÐÎÁбí Ö®Èý

Êý¾Ý¿âÉè¼Æ
±¾ÊµÀýʹÓÃÃûΪtreeµÄÊý¾Ý¿â±í£¬°üº¬µÄÊý¾ÝÈçͼ1.8Ëùʾ£¬¾ßÌåµÄ½¨±íÓï¾äÈçÏ£º
CREATE TABLE 'tree' (
  'id' int(11) NOT NULL auto_increment,
  'text' varchar(255) NOT NULL,
  'isfolder' varchar(5) NOT NULL default 'false',
  'link' varchar(255) default NULL,
  ' ......

×¢²áÓû§ÃûÑéÖ¤(ajax°æ)

<!--×¢²áÑéÖ¤Óû§ÃûÊÇ·ñ´æÔÚ(²»Ë¢ÐÂ)(2008-07-10 11:22:08)±êÇ©£ºdocument if color ch rs ×¢²á ajax ÑéÖ¤ Óû§Ãû it   ·ÖÀࣺÍøÂç±à³ÌÓ¦ÓÃ
Õë¶ÔASPµÄ ÓõÄÊÇAJAXдµÄ
·ÖÁ½²¿·Ö
 
-->
1.×¢²áÒ³Ãæ
JS²¿·Ö:
<script language="JavaScript">
function chuser(){
  var csuser=docume ......

ajax¿ª·¢¿ò¼Ü½éÉÜ

 ÄÜʵÏÖÍϷŹ¦ÄܵÄjs½Å±¾dom-drag.js  www.yongpup.net
»ùÓÚä¯ÀÀÆ÷µÄ¿ª·¢¿ò¼Ü(Application Frameworks)
1.Bindows www.bindows.net
2.BackBase www.backbase.com
3.DOJO  dojotoolkit.org/
4.Open Rico openrico.org/rico/home.page
5.qooxdoo qooxdoo.oss.schlund.de/
6. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ