root / tags / release-0.2.2 / iframe_history.html

Revision 2460, 1.5 kB (checked in by alex, 3 years ago)

fixes #245

  • 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>The Dojo Toolkit</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                                var pdj = window.parent.dojo;
37                                if((pdj["io"])&&(pdj["io"]["XMLHTTPTransport"])){
38                                        pdj.io.XMLHTTPTransport.iframeLoaded(null, window.location);
39                                }
40                        }
41                }
42        // -->
43        </script>
44</head>
45<!--
46<body onload="try{ init(); }catch(e){ alert(e); }">
47-->
48<body>
49        <h4>The Dojo Toolkit -- iframe_history.html</h4>
50
51        <p>This file is used in Dojo's back/fwd button management.</p>
52</body>
53</html>
Note: See TracBrowser for help on using the browser.