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 劉錚 閱讀(215) 評論(0)  編輯  收藏 所屬分類: Ajax

          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          導航

          統計

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 莱芜市| 诸暨市| 中超| 长乐市| 桐乡市| 怀宁县| 鄂伦春自治旗| 突泉县| 缙云县| 仁寿县| 庆城县| 高陵县| 都匀市| 许昌县| 金湖县| 房产| 聂拉木县| 百色市| 石城县| 台北县| 湘阴县| 临汾市| 申扎县| 巍山| 兴山县| 洛南县| 西丰县| 定南县| 湛江市| 台湾省| 长子县| 丹东市| 进贤县| 福安市| 象山县| 安陆市| 云霄县| 南陵县| 通道| 织金县| 岳西县|