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)

          搜索

          最新評論

          主站蜘蛛池模板: 石泉县| 五大连池市| 尚义县| 龙胜| 武宣县| 雅江县| 永靖县| 大足县| 剑阁县| 阳新县| 牙克石市| 肇州县| 和平区| 石渠县| 定南县| 山西省| 子长县| 余姚市| 尼木县| 禹州市| 改则县| 聊城市| 甘肃省| 黄浦区| 彭泽县| 沈丘县| 聂荣县| 竹北市| 赤城县| 广德县| 会同县| 东源县| 汨罗市| 昭平县| 洛阳市| 丹阳市| 通州区| 昭通市| 鄄城县| 射阳县| 延吉市|