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

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

          導(dǎo)航

          統(tǒng)計(jì)

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 溧阳市| 长寿区| 阿瓦提县| 托克逊县| 凤城市| 文水县| 庆安县| 昌乐县| 宁晋县| 张家港市| 郎溪县| 乐平市| 临泉县| 藁城市| 乌拉特后旗| 邵武市| 芮城县| 景洪市| 新源县| 自治县| 汝南县| 漠河县| 四平市| 德清县| 台中县| 鲜城| 汝阳县| 石阡县| 阿拉善盟| 苍南县| 华蓥市| 吴忠市| 闸北区| 蒙阴县| 新津县| 日喀则市| 通州区| 印江| 融水| 樟树市| 额济纳旗|