Advantages and Disadvantages of XMLHttp

          Undoubtedly, you can see the advantage of using XMLHttp for client-server communication instead of hidden frames. The code you write is much cleaner and the intent of the code is much more apparent than using numerous callback functions with hidden frames. You have access to request and response headers as well as HTTP status codes, enabling you to determine if your request was successful.
          The downside is that, unlike hidden frames, there is no browser history record of the calls that were made. The Back and Forward buttons do not tie in to XMLHttp requests, so you have effectively cut off their use. It is for this reason that many Ajax applications use a mixture of XMLHttp and hidden frames to make a truly usable interface.
          Another disadvantage, which applies to Internet Explorer only, is that you depend on ActiveX controls being enabled. If the user has your page set up in a particular security zone that doesn't allow ActiveX controls, you cannot access the XMLHttp object. In that case, you may have to default to using hidden frames.

          posted on 2007-10-29 10:50 劉錚 閱讀(219) 評(píng)論(0)  編輯  收藏 所屬分類: Ajax

          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導(dǎo)航

          統(tǒng)計(jì)

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評(píng)論

          主站蜘蛛池模板: 富阳市| 景谷| 溧阳市| 耿马| 商洛市| 廉江市| 长海县| 延边| 陆川县| 旅游| 呼伦贝尔市| 基隆市| 梅州市| 措勤县| 荥经县| 庄浪县| 侯马市| 双城市| 伊春市| 兴和县| 司法| 永善县| 吉首市| 永福县| 拜泉县| 托克逊县| 天镇县| 阜康市| 芦山县| 洪洞县| 衡山县| 桦川县| 曲水县| 五大连池市| 古浪县| 西乡县| 枣强县| 平潭县| 沾化县| 桃江县| 布尔津县|