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

AjaxÖеÄreadyStateºÍstatus

AjaxÖеķµ»Ø״̬readyStateºÍstatus,Ô­À´Ã»ÓÐÖØÊÓ¹ýÕâÁ½ÕߵĹØϵ£¬½á¹û½ñÌìд´úÂëʱ³ö²î´íÁË¡£ÎÒµÄÔ­´úÂëΪ£º
function requestSome()
{
  url=......
  xmlHttpRequest.open....
  xmlHttpRequest.onreadystatechange = function responseSome();
  xmlHttpRequest.send....
}
function responseSome()
{
  if(xmlHttpReqeust.readyState == 4)
  {
    alert(xmlHttpRequest.responseText);
    .....
    .....
  }
}
ÎÒÐèÒªµÃµ½Ò»Ð©ºÏ·¨µÄ·µ»ØÊý¾Ý²¢¶ÔÖ®½øÐд¦Àí£¬µ«·µ»Ø½á¹ûºÜÀëÆ棬ÎÒalert³öµÄ½á¹ûΪ£º<html><head><title>Apache Tomcat/5.5.26 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /xxxxx</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/adminConsolfasdf</u></p><p><b>description</b> <u>The requested resource (/adminConsolfasdf) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.26</h3></body></html>
ÎÒдµÄÒ³ÃæÖÐûÓÐÄĸöÊÇÕâÖÖµÄѽ£¬Ôõô»á·µ»ØÕâÖÖ½á¹û£¬ºÜ¹îÒ죬×îºó²Å·¢ÏÖÕâÊÇtomcat·µ»Ø404µÄ´íÎóÒ³ÃæµÄhtml¡£Ô­ÒòÊÇÏîÄ¿ÔÚlinuxµÄ·þÎñÆ÷¶Ë×ñÑ­µÄÊÇhttpsЭÒ飬¶øÎҵı¾µØÊÇhttp¡£Ô­À´µÄAjaxÇëÇóurlÊÇhttps,ËùÒ


Ïà¹ØÎĵµ£º

jsp »º´æ£¬ html »º´æ£¬ ajax»º´æ,½â¾ö·½·¨

jsp »º´æ£¬ html »º´æ£¬ ajax»º´æ,½â¾ö·½·¨
url:http://blog.csdn.net/oklzh/archive/2009/08/14/4445722.aspx
ÓйØÒ³Ã滺´æÎÊÌ⣮Õâ¸öÎÊÌâÉÏÍøÕÒÁ˺ö࣮µ«·¢¾õ¸÷ÖÖ½â¾ö·½·¨£¬¶¼±Ë´Ë·ÖÀ룬ûÓÐһƪͳһµÄ½â¾ö·½·¨£¬±¾È˽üÈÕ£¬Ò²Óöµ½ÁËÒ³Ã滺´æµÄÎÊÌ⣬¸ù¾ÝÍøÉϸ÷Ò³Ã滺´æµÄ½â´ð£¬×öÁËÒ»¸ö×ܽᡣ
1.·þÎñÆ÷¶Ë»º´æµÄÎÊÌâ ......

Ajax¶¯Ì¬Éú³É±í

    ½ñÌìÓöµ½ÁËÒ»¸öÎÊÌ⣬JS²»Äܸù¾ÝAjax·µ»ØµÄDataTable¶¯Ì¬Éú³Étable,¸ñʽÈçÏ£º
   [Ajax.AjaxMethod()]
   public DataTable GetDataTable(string tablename)
   {
       DataTable Table=new DataTable();
     ......

Asp.netÖеÄAJAX¿Ø¼þ


Accordion¿Ø¼þʱµÄ³£ÓÃÊôÐÔ±êÇ©
ÊôÐÔ±êÇ©Ãû Ãè¡¡¡¡Êö
SelectedIndex ¸Ã¿Ø¼þ³õ´Î¼ÓÔØʱչ¿ªµÄAccordionPaneÃæ°åµÄË÷ÒýÖµ
HeaderCssClass ¸ÃAccordionÖаüº¬µÄËùÓÐAccordionPaneÃæ°åµÄ±êÌâÇøÓòËùÓ¦ÓõÄCSS Class
ContentCssClass ¸ÃAccordionÖаüº¬µÄËùÓÐAccordionPaneÃæ°åµÄÄÚÈÝÇøÓòËùÓ¦ÓõÄCSS Class
AutoSize Ô ......

Á÷ÐеÄAJAX¿ò¼Ü¶Ô±È£ºjQuery£¬Mootools£¬Dojo£¬Ext JS

À´Ô´£ºhttp://developer.51cto.com/art/200906/129502.htm
±¾ÎĽéÉÜÁËËÄÖÖÁ÷ÐеÄAJAX¿ò¼Ü£¬°üÀ¨¼ò½àµÄjQuery£¬ÃæÏò¶ÔÏóµÄ
Mootools£¬ÓµÓÐÇ¿´óÖ§³ÖµÄDojo£¬ÒÔ¼°×é¼þ»¯£¬RIA»¯µÄExt JS¡£
AJAX
ÊÇweb20
µÄ»ùʯ£¬ÏÖÔÚÍøÉÏÁ÷Ðм¸ÖÖ¿ªÔ´µÄ
AJAX¿ò¼Ü£¬±ÈÈ磺jQuery,Mootools,Dojo,Ext JSµÈµÈ£¬ÄÇôÎÒÃǵ½µ×ÔÚʲôÇé¿öϸÃÊ¹Ó ......

AjaxÈý²½ÇúºÍDWRµÄʹÓÃ

ʹÓÃDWR¿ª·¢AjaxÓ¦Óãº
1¡¢µ¼ÈëDWRµÄJar°ü£ºdwr.jar;
2¡¢ÔÚ/WEB-INFÏÂÌí¼Ódwr.xmlÅäÖÃÎļþ£»
3¡¢ÔÚweb.xmlÎļþÖÐÅäÖÃdwrµÄ·þÎñÆ÷¶Ë×é¼þ£¨DwrServlet£©:
<!-- Ìí¼ÓDWRµÄServlet -->
  <servlet>
  <servlet-name>dwr</servlet-name>
  <servlet-class>org.direc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ