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

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

          導航

          統計

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 西乌珠穆沁旗| 永胜县| 庐江县| 定州市| 滦南县| 曲水县| 遵义市| 星子县| 江永县| 呼图壁县| 安徽省| 汕头市| 观塘区| 旬邑县| 澄城县| 文山县| 武宣县| 浠水县| 柘荣县| 濉溪县| 城市| 江城| 株洲县| 安达市| 屏东县| 山阳县| 内黄县| 林州市| 中卫市| 诸城市| 喜德县| 鄂托克旗| 仲巴县| 鸡泽县| 泰州市| 英德市| 合山市| 湘西| 都安| 侯马市| 呼和浩特市|