root / tags / release-0.3.1 / iframe_history.html

Revision 4226, 1.6 kB (checked in by jburke, 2 years ago)

Updated test to allow testing bookmarking, and made the iframe_history.html use a decent title for MSIE

  • Property svn:eol-style set to native
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5<head>
6        <title></title>
7        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
8        <script type="text/javascript">
9        // <!--
10        var noInit = false;
11        var domain = "";
12        // document.domain = "localhost";
13        function init(){
14                // parse the query string if there is one to try to get args that
15                // we can act on
16                var sparams = document.location.search;
17                if(sparams.length >= 0){
18                        if(sparams.charAt(0) == "?"){
19                                sparams = sparams.substring(1);
20                        }
21                        var ss = (sparams.indexOf("&amp;") >= 0) ? "&amp;" : "&";
22                        sparams = sparams.split(ss);
23                        for(var x=0; x<sparams.length; x++){
24                                var tp = sparams[x].split("=");
25                                if(typeof window[tp[0]] != "undefined"){
26                                        window[tp[0]] = ((tp[1]=="true")||(tp[1]=="false")) ? eval(tp[1]) : tp[1];
27                                }
28                        }
29                }
30
31                if(noInit){ return; }
32                if(domain.length > 0){
33                        document.domain = domain;
34                }
35                if((window.parent != window)&&(window.parent["dojo"])){
36                        //Set the page title so IE history shows up with a somewhat correct name.
37                        document.title = window.parent.document.title;
38                       
39                        //Notify parent that we are loaded.
40                        var pdj = window.parent.dojo;
41                        if(pdj["undo"] && pdj["undo"]["browser"]){
42                                pdj.undo.browser.iframeLoaded(null, window.location);
43                        }
44                }
45        }
46        // -->
47        </script>
48</head>
49<body onload="try{ init(); }catch(e){ alert(e); }">
50        <h4>The Dojo Toolkit -- iframe_history.html</h4>
51
52        <p>This file is used in Dojo's back/fwd button management.</p>
53</body>
54</html>
Note: See TracBrowser for help on using the browser.