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

AjaxÖÐÇëÇó±»»º´æµÄÎÊÌâ

½ñÌì¸ãÁËÎÒÈýËĸöСʱµÄÎÊÌ⣬ÖÕÓÚÕÒµ½½â¾ö·½°¸ÁË¡£¹þ¹þ¡£
ÔÚAjax¿ª·¢ÖУ¬»áÓöµ½ä¯ÀÀÆ÷»º´æÄÚÈݵÄÎÊÌ⣬±ÈÈ磬ij¸öÔªËØ×¢²áÁËÊó±êʼþ£¨onmouseover£©£¬Ê¼þ´¥·¢ºó»áͨ¹ýxmlhttprequestµ½·þÎñÆ÷»ñÈ¡ÄÚÈÝ£¬ÔÚ²»Ë¢ÐÂÒ³ÃæµÄÇé¿öÏ£¬ä¯ÀÀÆ÷»á»º´æµÚÒ»´ÎÇëÇóµÄÄÚÈÝ£¬·þÎñ¶Ë¸üкóä¯ÀÀÆ÷ÈÔÈ»ÏÔʾµÚÒ»´ÎµÄÄÚÈÝ¡£
ͨ³££¬ÕâÖÖÇëÇó¶¼ÊÇxmlhttprequest·¢ÆðµÄGETÇëÇ󡣸ù¾Ý HTTP ¹æ·¶£¬GET ÓÃÓÚÐÅÏ¢»ñÈ¡£¬¶øÇÒÓ¦¸ÃÊÇÃݵȵġ£Ò²¾ÍÊÇ˵£¬µ±Ê¹ÓÃÏàͬµÄURLÖØ¸´GETÇëÇó»á·µ»ØÔ¤ÆÚµÄÏàͬ½á¹ûʱ£¬GET·½·¨²ÅÊÇÊÊÓõġ£µ±¶ÔÒ»¸öÇëÇóÓи±×÷ÓõÄʱºò£¨ÀýÈ磬Ìá½»Êý¾Ý×¢²áÐÂÓû§Ê±£©£¬Ó¦¸ÃʹÓÃPOSTÇëÇó¶ø²»ÊÇGET¡£ËùÒÔä¯ÀÀÆ÷»á¶ÔGETÇëÇó×ö»º´æ´¦Àí¡£
½â¾ö°ì·¨£º
Ò». GETÇëÇóURLºó¸½¼Ó×Ö´®£¬È÷þÎñÆ÷ÈÏΪ²»ÊÇÏàͬµÄÇëÇó¡£
Àý “http://www.example.com/index.php?class=aitcle&page=5&_t=” + new Date().getTime()
¶þ. ÔÚajax·¢ËÍÇëÇóǰ¼ÓÉÏ xmlHttpRequest.setRequestHeader(”If-Modified-Since”,”0″)
Èý. ÔÚajax·¢ËÍÇëÇóǰ¼ÓÉÏ xmlHttpRequest.setRequestHeader(”Cache-Control”,”no-cache”);
ËÄ. ·þÎñ¶ËÏìÓ¦ÇëÇóʱ¼Ó header(”Cache-Control: no-cache, must-revalidate”); £¨PHP£©
Îå. ʹÓÃPOST´úÌæGET£¬ä¯ÀÀÆ÷²»»á¶ÔPOST×ö»º´æ
¸½Â¼£º
RFC1945ÖеÄÓ¢ÎÄÔ­ÎÄÈçÏ£º
8.1 GET
The GET method means retrieve whatever information (in the form of an
entity) is identified by the Request-URI. If the Request-URI refers
to a data-producing process, it is the produced data which shall be
returned as the entity in the response and not the source text of the
process, unless that text happens to be the output of the process.
The semantics of the GET method changes to a “conditional GET” if the
request message includes an If-Modified-Since header field. A
conditional GET method requests that the identified resource be
transferred only if it has been modified since the date given by the
If-Modified-Since header, as described in Section 10.9. The
conditional GET method is intended to reduce network usage by
allowing cached entities to be refreshed without requiring multiple
requests or trans


Ïà¹ØÎĵµ£º

2009 12 28 ´«ÖDz¥¿Í—AJAX£¨×ÛºÏÁ·Ï°£©


½ñÌìÔçÉÏÀÏÙ¡½«×òÌìµÄÁ·Ï°½øÐÐÁ˽²½â¡£½ñÌìµÄÖ÷ÒªÄÚÈÝÊǶÔAJAXµÄ»ã×ÜÁ·Ï°£¬×öÁËÁ½¸öÁ·Ï°¶¼ÊDZȽϳ£Ê¹ÓõÄÓ¦Óá£
 
Ò»¡¢              ÏÂÀ­¿òµÄ¼¶Áª£¬±ÈÈ磬ѡÔñÏÂÀ­¿òÒ»ÖеÄÄÚÈÝ£¨³ÇÊÐÃû³Æ£©£¬ÔÚÏÂÀ­¿ò¶þÖÐÏÔʾÔÚÕâ¸ö³ÇÊÐÖеIJ¿ÃÅ¡£ÔÚÏÂÀ­ ......

AjaxÖÐsend·½·¨²ÎÊýµÄʹÓÃ

¡¡Ò»°ãÇé¿öÏ£¬Ê¹ÓÃAjaxÌá½»µÄ²ÎÊý¶àÊÇЩ¼òµ¥µÄ×Ö·û´®£¬¿ÉÒÔÖ±½ÓʹÓÃGET·½·¨½«ÒªÌá½»µÄ²ÎÊýдµ½open·½·¨µÄurl²ÎÊýÖУ¬´Ëʱsend·½·¨µÄ²ÎÊýΪnull¡£
ÀýÈç £º
¡¡¡¡ var url = "login.jsp?user=XXX&pwd=XXX";
¡¡¡¡xmlHttpRequest.open("GET",url,true);
¡¡¡¡xmlHttpRequset.send(null);
¡¡¡¡´ËÍ⣠......

JavaScript ¼òµ¥Àí½âAjaxÒì²½µ÷ÓòÙ×÷

JavaScript ¼òµ¥Àí½âAjaxÒì²½µ÷ÓòÙ×÷µÄÎÄÕ¡£
ÎÄÕµØÖ·£ºhttp://www.soaspx.com/dotnet/ajax/javascript/javascript_20090915_349.html
ÕâÆªÎÄÕÂÊÇÀí½âAjax¼¼ÊõµÄ¼òµ¥Àý³Ì£¬Í¦¼òÃ÷¶óÒª£¬ºÜÈÝÒ×Àí½â¡£
AjaxÌṩÓë·þÎñÆ÷Ò첽ͨÐŵÄÄÜÁ¦£¬½èÖúÓÚAjax£¬¿ÉÒÔÔÚÓû§µ¥»÷°´Å¥Ê±£¬Ê¹ÓÃJavaScriptºÍ DHTMLÁ¢¼´¸üÐÂUI£¬²¢Ïò·þÎñÆ÷ ......

DWR ·´×ªAJAX µ¥Ï߳̿ØÖÆSESSION

Ä¿µÄ£ºÍ¨¹ýÒ»¸öỊ̈߳¬ÅжÏSESSIONÊÇ·ñ¹ýÆÚ£¬Èç¹û¹ýÆÚ£¬µ÷Óÿͻ§¶ËÒ³ÃæµÄJS£¬°ÑÐÅÏ¢ÍÆ¸ø¿Í»§¶Ë¡£
ÎÒÃÇÒªÈÃDWR³ÌÐòÖ§³Ö·´ÏòAJAX¡£ÐèÒªÔÚweb.xmlÖÐDWRServletÀïÌí¼ÓÒ»¸ö³õʼ»¯²ÎÊý£¬ÁíÍâÒªÅäÖÃÒ»¸ö¼àÌýÆ÷£¬ÔÚÊʺϵÄʱºò¹Ø±ÕÏ̡߳£
ÈçÏÂÊÇweb.xmlÖеÄÅäÖÃ
<listener>
        < ......

ajax Ó÷¨

AjaxPro.2.dll  µÄʹÓÃʵÀý(2008-09-20 11:13:25)±êÇ©£ºajax it   ·ÖÀࣺajax
×¼±¸¹¤×÷£ºÏîÄ¿ÖÐÒªÒýÓÃAjaxPro.2.dll£¬Õâ¸ö²½Öè¾ÍÊ¡ÂÔÁË£¬¹þ¹þ
µÚÒ»²½£ºweb.config
<system.web>
    <httpHandlers>    
      <add verb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ