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

AJAX DWR

ʹÓÃԭʼµÄXMLHttpRequest·¢³öÇëÇóʱ,Ö»ÄܶÔServletºÍJSP²Ù×÷
ÔÚJSPÖд´½¨3¸öfunction
1.createXmlHttpRequest----¸ºÔðÅжÏä¯ÀÀÆ÷ÀàÐÍ´´½¨ XMLHttpRequest¶ÔÏó
 var xmlHttpRequest;
 function createXMLHttpRequest(){
   // IE ä¯ÀÀÆ÷
   if(window.ActiveXObject){
          return new ActiveXObject("Microsoft.XMLHTTP");
      }else if(window.XMLHttpRequest){
       // ·ÇIEä¯ÀÀÆ÷
          return new XMLHttpRequest();
      }
   
  }
2.doLogin------¸ºÔð¸ü¼Ó´´½¨ºÃµÄXMLHttpRequest¶ÔÏó·¢³öÇëÇó
 function doLogin(obj){
   var url = "servlet/LoginServlet?userName="+obj.value;
   
   // 1. ´´½¨XMLHttpRequest×é¼þ
   xmlHttpRequest = createXMLHttpRequest();
   // 2. ÉèÖûص÷º¯Êý
   xmlHttpRequest.onreadystatechange = haoLeJiaoWo;
   // 3. ³õʼ»¯XMLHttpRequest×é¼þ
   // ʹÓÃget·½·¨µ÷ÓÃURL,true´ú±íÊÇÒì²½µÄ
   xmlHttpRequest.open("GET",url,true);
   // 4. ·¢ËÍÇëÇó
   xmlHttpRequest.send(null);
   alert("123");
   
  }
3.haolejiaowo---¸ºÔð½øÐлص÷´¦Àí
function haoLeJiaoWo(){
   // readyState-- =4±íʾµÃµ½ÁË·µ»Ø½á¹û
   // status=200 ±íʾ³É¹¦¶øÇÒ²»³ö´í
   /*
    ÇëÇó״̬£º
    0 -- δ³õʼ»¯
    1 -- ³õʼ»¯
    2 -- ·¢ËÍÇëÇó
    3 -- ¿ªÊ¼½ÓÊܽá¹û
    4 -- ½ÓÊܽá¹ûÍê±Ï
    Ã¿´Î״̬¸Ä±ä¶¼»áµ÷Õâ¸öº¯Êý
    
   */
   if(     xmlHttpRequest.readyState == 4   &


Ïà¹ØÎĵµ£º

AJAXÀïTabContainerµÄCSS (תÌù)

AJAX×Ô´ÓÒý½øÁËTab£¬×ÅʵÈÃÎÒ¿ªÐÄÁËÒ»·¬¡£µ«ÊÇ£¬ÔÚµ÷ÕûTabµÄÑùʽµÄʱºò£¬Ò²×ÅʵÈÃÎÒ³ÔÁËÒ»¾ª¡£
ÓÚÊÇ£¬±§×ÅûÓÐÀ§ÄÑÒ²ÒªÖÆÔìÀ§ÄѵÄÔ­Ôò£¬¿ªÊ¼ÁËÕ÷;£º
°´ÕÕTab×÷ÕßRonald BucktonËù˵£¬TabµÄCSS°üº¬Èçϼ¸¸öÀࣺ
(1).ajax__tab_header: A container element that wraps all of the tabs at the top of the TabContainer. ......

AJAXÀ©Õ¹¿Ø¼þAccordionµÄʹÓ÷½·¨×ܽá


ÈçÉÏͼËùʾΪAccordion¿Ø¼þ£º
 ¸Ð¾õ²»´íµÄÑùʽ
  <style type="text/css">
.headerBg{cursor:hand;text-align:center;width:180px;height:21px;background-image:url(images/ajaxmenubg1.gif);FONT-SIZE: 12px;line-height:21px;}           ......

Asp.net AJAX Web Serviceд·¨²îÒì

ÔÚC#ÖÐ
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Script.Services;
using System.Collections.Generic;
using System.Collections;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.Ba ......

Ajax µÄ״̬½éÉÜ

ÔÚ¡¶Pragmatic Ajax A Web 2.0 Primer ¡·ÖÐżȻ¿´µ½¶ÔreadyStae״̬µÄ½éÉÜ£¬¸Ð¾õÕâ¸ö½éÉܺÜʵÔÚ£¬ÕªÒëÈçÏ£º
0: (Uninitialized) the send( ) method has not yet been invoked.
1: (Loading) the send( ) method has been invoked, request in progress.
2: (Loaded) the send( ) method has completed, entire respons ......

ÎÒµÄAjaxÔÓ̸ Ò²ÐíÒ²ÊÇÂÒµ¯

      Google Suggest ºÍGoogle MapµÄ³öÏÖ£¬ÒýÆðÁËÎÒÃÇWeb¿ª·¢ÕßµÄÒ»´ÎÕ𶯡£Ëæ×ÅAjax¼¼ÊõµÄ³öÏÖ¡¢Ê¢ÐУ¬±¾±»ºöÊÓÈÏΪÊǶþÁ÷±à³ÌÓïÑÔµÄJavaScript½Å±¾Ò²¿ªÊ¼ÁËеÄÊ¢ÐУ¬´óÁ¿µÄJavaScript¿ò¼ÜµÄ³öÏÖÈçMicrosoft Asp.Net Ajax¡¢jQueryµÈ¡£AjaxÒѾ­³ÉΪÕâЩ½Å±¾¿ò¼Ü±Ø²»¿ÉÉÙµÄ×é³É²¿·ÖÁË£¬¶øÇÒAjaxµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ