¡¾×ª¡¿ajaxºÍIE7¡¢IE8µÄÎÊÌâ
xmlHTTP¶ÔÏóµÄÎÊÌâ Ç°Á½Ìì°²×°ÁËIE7.0,½ñÌìÈ´·¢ÏÖÇ°¼¸ÌìÓÃajax¿ª·¢µÄй¦Äܾ¹È»ÎÞ·¨Ê¹ÓÃ,¾¹ý±¾ÈËϬÀûµÄÄ¿¹â´ó·¶Î§µÄËÑË÷,ÖÕÓÚÕÒµ½Á˽â¾ö°ì·¨,ÔÒòÊÇIE7.0±ÈIE6.0¶àÁ˱¾µØXMLHTTPÖ§³Ö¡£ËùÒÔ½â¾ö·½·¨Ö®Ò»¾ÍÊǵã»÷¡°¹¤¾ß¡±->¡°InternetÑ¡Ï->¡°¸ß¼¶¡±£¬ÔÚ¡°°²È«¡±½ÚµãÏÂÕÒµ½¡°ÆôÓñ¾»úXMLHTTPÖ§³Ö¡±£¬¸ÃÑ¡ÏîĬÈÏÊǹ³Ñ¡£¬½ûÓÃËüºó¿ÉÒÔ½â¾öÎÊÌâ¡£ ½â¾ö·½·¨¶þÄؾÍÊÇ´´½¨XMLHttpRequest¶ÔÏóµÄ˳Ðò£¬Ó¦¸ÃÏÈÈ¥ÅжÏwindow.ActiveXObjectÈ»ºóÔÙÅжÏwindow.XMLHttpRequest£¬Ê¾Àý´úÂëÈçÏ£º function getXMLHttpRequest() {
var http_req;
if (window.ActiveXObject) {
try {
http_req=new window.ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_req=new window.ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
alert("²»ÄÜ´´½¨XMLHttpRequestʵÀý£¡");
return false;
}
}
} else if (window.XMLHttpRequest) {
http_req=new window.XMLHttpRequest();
if (http_req.overrideMimeType) {
http_req.overrideMimeType("text/xml");
}
}
return http_req;
} ajaxºÍIE7.0µÄÎÊÌâ_ֻΪÐÄ¿ñ
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
var pageTracker = _gat._getTracker("UA-11981827-2");
pageTracker._trackPageview();
} catch(err) {}
Ïà¹ØÎĵµ£º
×î½üÒ»¶Îʱ¼äÓÃjquery£¬¸Ð¾õЧ¹ûͦºÃµÄ£¬¶Ô´Ë¸ÐÐËȤ¡£jqueryÀïÃæÓÐÒ»¸ö×îÖØÒªµÄ¾ÍÊÇajaxµÄÓ¦Ó㬿´À´ÎÒÕâÀïÒ²µÃ´ÓͷѧѧajaxµÄ»ù´¡ÖªÊ¶£¬²»È»¿´juqeryµÄ´úÂ룬Ҳ±È½ÏµÄ·Ñ¾¢¡£
ºÃ£¬ÕâÀï¾ÍдЩ²âÊÔ´úÂ롣ϣÍûºÍÎÒÒ»ÑùµÄÐÂÊÖÄܶà¶à̽ÌÖ¡£
========================ajax±Ê¼Ç================= ......
dwrµÄReverse AjaxÇ°ÃæÒ»Ö±¶¼Ã»ÓÐÓùý£¬×î½üÒòΪÏîÄ¿ÀïÃæÉæ¼°µ½Ñо¿ÁËÏ£¬»¹ÊÇÁô¸ö¼Ç¼°É¡£
dwrµÄÄæÏòajaxÆäʵÖ÷Òª°üÀ¨Á½ÖÖģʽ£ºÖ÷¶¯Ä£Ê½ºÍ±»¶¯Ä£Ê½¡£ÆäÖÐÖ÷¶¯Ä£Ê½°üÀ¨PollingºÍCometÁ½ÖÖ£¬±»¶¯Ä£Ê½Ö»ÓÐPiggybackÕâÒ»ÖÖ¡£
ËùνµÄPiggybackÖ¸µÄÊÇÈç¹ûºǫ́ÓÐʲôÄÚÈÝÐèÒªÍÆË͵½Ç°Ì¨ ......
½ñÌìÕÒһЩFlex×ÊÁÏ£¬Å¼È»·¢ÏֺܶàÈËÔÚÎÊÓйØFABridgeµÄÎÊÌ⣬¿´ÁËһϣ¬´óÖ¶¼ÊÇÔÚÎÊÔÚFlashBuilderÖÐÈçºÎͨ¹ýFABridgeÀ´ÊµÏÖF-AµÄ½»»¥¡£¼òµ¥ËµËµ°É¡£
Ò».ͨ¹ýjs·ÃÎÊFlex×é¼þ
1.×¼±¸¹¤×÷¡£ÏȽ¨Á¢Flex¹¤³Ì :fademo£¬²¢·ÅÖÃÒ»¸öÎı¾¿ò:txtName¡£×öÍêºó´úÂëÓ¦¸ÃÀàËÆÓÚÕâ¸öÑù×Ó£º
<?xml version="1.0 ......
ASP.NET Ajax Videoѧϰ±Ê¼Ç
5. Make Client-Side Network Callbacks with ASP.NET AJAX?
Notes:
ÔÚ<ScriptManager>ÖÐÌí¼Ó<Services>
4. Implement Dynamic Partial-Page Updates with ASP.NET AJAX?
Notes:
UpdatePanel¿ÉÒÔÍê³É²¿·ÖÒ³ÃæµÄ¸üÐÂ
Èç¹ûButtonÔÚUpdatePanelÖУ¬¼´Ê¹ÔÚPageLoad()Öаüº¬¸üÐÂË ......