w3pop.com :: ÍøÂçѧԺ :: AJAX :: AJAXä¯ÀÀÆ÷
AJAX applications can only run in web browsers with XML support.
AJAXÓ¦ÓóÌÐòÖ»¿ÉÒÔÔÚÖ§³ÖXMLµÄä¯ÀÀÆ÷ÉÏÔËÐÐ
AJAX applications can only run in web browsers with complete XML support.
AJAXÖ»ÄÜÔËÐÐÔÚÄÇЩÍêȫ֧³ÖXMLµÄä¯ÀÀÆ÷ÉÏ
Only two web browsers available today - Internet Explorer (IE) and Mozilla Firefox.- have complete enough support for XML to run AJAX applications.
ĿǰֻÓÐÁ½¸öä¯ÀÀÆ÷ÊÇ·ûºÏÕâ¸öÒªÇóµÄ - IEºÍ»ðºü - ËüÃǶÔXMLµÄÖ§³Ö×ãÒÔÔËÐÐAJAX³ÌÐò
Since other browsers like Safari and Opera have limited, incomplete or incorrect XML support, this tutorial will focus on IE and Firefox examples.
ÆäËüä¯ÀÀÆ÷ÔÚ´Ë·½ÃæÓоÖÏÞÐÔ(±ÈÈçSafari ºÍ Opera)£¬ËùÒÔËüÃǶÔXMLµÄÖ§³Ö»¹²»ÍêÈ«£¬Õâ¸ö½Ì³Ì»áÖ÷ÒªÕë¶ÔIEºÍFFä¯ÀÀÆ÷½øÐоÙÀý
The example on the previous page called a function called GetXmlHttpObject.
ÉÏÒ»Ò³µÄ¾ÙÀýµ÷ÓÃÁËÃûΪGetXmlHttpObjectµÄº¯Êý
The purpose of the function is to solve the problem of creating different XMPHTTP objects for different browsers.
ʹÓÃÕâ¸öº¯ÊýµÄÄ¿µÄÊÇΪÁ˽â¾öÕë¶Ô²»Í¬ä¯ÀÀÆ÷½¨Á¢²»Í¬µÄXMPHTTP¶ÔÏó¶øÉè¼ÆµÄ¡£
The function is listed below:
º¯ÊýÊÇÕâÑùµÄ£º
function GetXmlHttpObject(handler) |
The full source code to the example is listed in the next chapter.
¾ÙÀýµÄÍêÕû´úÂëÔÚÏÂһƪÖС£
ÆÀÂÛ (0)
All