AjaxÓëIE6»º´æÎÊÌâ
½ñÌ죬ÓÐͬÊ·¢ÏÖÏà¹ØÒµÎñÊý¾ÝÐ޸ĺó£¬ÔÚIE6Ï»¹ÊÇÏÔʾÐÞ¸ÄǰµÄÖµ¡£µ«ÔÚÆäËûä¯ÀÀÆ÷ºÍIE7¡¢IE8Ï£¬Ã»ÓÐÕâ¸öÎÊÌâ¡£
ÔÒò£ºÓÃajaxÇëÇóʱ£¬Èç¹û³öÏÖÖØ¸´µÄURL£¬ä¯ÀÀÆ÷²»»áÏò·þÎñÆ÷·¢ËÍÇëÇ󣬶øÊǸù¾Ý֮ǰÏàͬµÄURLÇëÇó½á¹û·µ»Ø¡£ÔÒò¾ÍÔÚÓÚ֮ǰµÄÇëÇó¼°½á¹ûÒѾ±£´æÔÚÁË
»º´æÀÈç¹ûÓöµ½ÏàͬURLʱ£¬½á¹ûÊÇÖ±½Ó´Ó»º´æÀïÈ¡µÃ¡£
½â¾ö°ì·¨£º
1¡¢ÉèÖÃIE6Öй¤¾ß-internetÑ¡Ïî-InternetÁÙʱÎļþ-ÉèÖÃ-¼ì²éÿ´ÎÍøÒ³µÄ½Ïа汾-ÉèÖÃΪÿ´Î·ÃÎÊ´Ëҳʱ¼ì²é¡£
2¡¢ÔÚIE·¢ËÍajaxÊý¾Ýʱ£¬·¢ËÍÒ»¸öËæ»úʱ¼ä´Á¡£¼´Ö»ÒªÈÃÿ´ÎÇëÇóµÄURL²»Ò»Ñù¾Í¿ÉÒÔÁË£¬±ÈÈçÿ´ÎÇëÇóʱÔÚURLÖмÓÉÏʱ¼äµÄºÁÃëÊý»òËæ»úÊý£¨new Date().getTime()»òÕßMath.Random()
£©¡£
ÁíÍâ£¬ÍøÉÏ»¹Óкܶà½â¾ö·½·¨£º
1.ËÍÇëÇóǰ¼ÓÉÏ
XMLHttpRequest.setRequestHeader("If-Modified-Since","0")
»òÕßÓÃpost·½·¨Ìá½»
2.·þÎñÆ÷¶Ë½ûÓûº´æ£¨Ö»ÊǽûÖ¹ÁË·þÎñ¶Ë»º´æ£¬²»ÄܽûÖ¹ajax»º´æ£©
.
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
3.ÕâÆªÎÄÕÂÖµµÃ²Î¿¼http://www.phpdiy.com/index.php/viewnews-31462
Ïà¹ØÎĵµ£º
AJAX¼¼ÊõÓ¦ÓÃÏê½â ÊÕ²Ø
AJAXÊÇAsynchronous JavaScript and XML µÄËõд¡£Ëü²¢²»ÊÇÒ»ÃÅеÄÓïÑÔ»ò¼¼Êõ£¬Ëüʵ¼ÊÉÏÊǼ¸Ïî¼¼Êõ°´Ò»¶¨µÄ·½Ê½×éºÏÔÚÒ»ÔÚͬ¹²µÄÐ×÷Öз¢»Ó¸÷×ÔµÄ×÷Óã¬Ëü°üÀ¨:ʹÓÃXHTMLºÍCSS±ê×¼»¯³ÊÏÖ;ʹÓÃDOMʵÏÖ¶¯Ì¬ÏÔʾºÍ½»»¥;ʹÓÃXMLºÍXSLT½øÐÐÊý¾Ý½»»»Óë´¦Àí;ʹÓÃXMLHttpRequest½øÐÐÒì²½Êý¾Ý¶ÁÈ¡;×î ......
ÒòΪAJAXĬÈϵÄÊÇUTF-8£¬ËùÒÔ½«JSPÒ³ÃæºÍºǫ́servletµÄ±àÂë¸ñʽ¶¼ÉèÖÃΪUTF-8×îºÃ£¬Ò²ÓÐÀûÓÚÒÔºóµÄÀ©Õ¹¡£
È»ºóÔÚ¶ÔÓ¦µÄ¸ñʽÏÂÃæ£¨dopost»òÕßdoget£©£¬¼ÓÉÏÕ⼸¾ä
response.setContentType("text/html");
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("UTF-8");
±¾ÈËÇײ⣬µ¯³öµ ......
½ñÌìÓöµ½ÁËÒ»¸öÎÊÌ⣬JS²»Äܸù¾ÝAjax·µ»ØµÄDataTable¶¯Ì¬Éú³Étable,¸ñʽÈçÏ£º
[Ajax.AjaxMethod()]
public DataTable GetDataTable(string tablename)
{
DataTable Table=new DataTable();
  ......
Á˽âʹÓà ASP.NET AJAX ½øÐоֲ¿Ò³Ãæ¸üÐÂ
¼ò½é
MicrosoftµÄ ASP.NET ¼¼ÊõÌṩÁËÒ»¸öÃæÏò¶ÔÏó¡¢Ê¼þÇý¶¯µÄ±à³ÌÄ£ÐÍ£¬²¢½«ÆäÓëÒѱàÒë´úÂëµÄÓÅÊÆ½áºÏÆðÀ´¡£µ«Æä·þÎñÆ÷¶ËµÄ´¦ÀíÄ£ÐÍÈÔ´æÔÚ¼¼Êõ±¾ÉíËù¹ÌÓеļ¸µã²»×㣺
½øÐÐÒ³Ãæ¸üÐÂÐèÒªÍù·µ·þÎñÆ÷£¬Òò´ËÐèÒªÒ³ÃæË¢Ð£»
À´»ØÍù·µ²»»á±£Áô Javascript »òÆäËû¿Í»§¶Ë¼¼Êõ£¨Èç Ad ......
jQuery Ajax ʵÀý È«½âÎö
Òý×Ô:http://www.pqshow.com/design/Javascript/200909/10473.html
jQueryȷʵÊÇÒ»¸öͦºÃµÄÇáÁ¿¼¶µÄJS¿ò¼Ü£¬ÄܰïÖúÎÒÃÇ¿ìËٵĿª·¢JSÓ¦Ó㬲¢ÔÚÒ»¶¨³Ì¶ÈÉϸıäÁËÎÒÃÇдJavaScript´úÂëµÄϰ¹ß¡£
·Ï»°ÉÙ˵£¬Ö±½Ó½øÈëÕýÌ⣬ÎÒÃÇÏÈÀ´¿´Ò»Ð©¼òµ¥µÄ·½·¨£¬ÕâЩ·½·¨¶¼ÊǶÔjQuery.ajax()½øÐзâ×°ÒÔ·½±ãÎÒÃÇ ......