Advantages and Disadvantages of Hidden Frames

          Hidden Frames Technology is the farther of the Ajax
          Now that you have seen the powerful things that you can do using hidden frames, it's time to discuss the practicality of using them. As mentioned previously, this technique has been around for many years and is still used in many Ajax applications.
          One of the biggest arguments for using hidden frames is that you can maintain the browser history and thus enable users to still use the Back and Forward buttons in the browser. Because the browser doesn't know that a hidden frame is, in fact, hidden, it keeps track of all the requests made through it. Whereas the main page of an Ajax application may not change, the changes in the hidden frame mean that the Back and Forward buttons will move through the history of that frame instead of the main page. This technique is used in both Gmail and Google Maps for this very reason.
          The downside of hidden frames is that there is very little information about what's going on behind the scenes. You are completely reliant on the proper page being returned. The examples in this section all had the same problem: If the hidden frame page failed to load, there is no notification to the user that a problem has occurred; the main page will continue to wait until the appropriate JavaScript function is called. You may be able to provide some comfort to a user by setting a timeout for a long period of time, maybe five minutes, and displaying a message if the page hasn't loaded by then, but that's just a workaround. The main problem is that you don't have enough information about the HTTP request that is happening behind the scenes. Fortunately, there is another option.

          posted on 2007-10-29 10:23 劉錚 閱讀(358) 評論(0)  編輯  收藏 所屬分類: Ajax

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

          導航

          統計

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 闽清县| 酉阳| 平凉市| 昌江| 永泰县| 沁阳市| 尼玛县| 祥云县| 阿克苏市| 宁蒗| 天全县| 余江县| 珲春市| 绥棱县| 广西| 安塞县| 闵行区| 宝鸡市| 龙井市| 麻栗坡县| 集贤县| 蒙自县| 哈密市| 北安市| 十堰市| 贵德县| 翼城县| 方城县| 莎车县| 恭城| 鸡西市| 浙江省| 建瓯市| 郎溪县| 兖州市| 韶山市| 清丰县| 建昌县| 漾濞| 三亚市| 黎川县|