iframe_history.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <title></title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <script type="text/javascript">
  8. // <!--
  9. var noInit = false;
  10. function init(){
  11. if(noInit){ return; }
  12. var hasParentDojo = false;
  13. try{
  14. hasParentDojo = window.parent != window && window.parent["dojo"];
  15. }catch(e){
  16. alert("Initializing iframe_history.html failed. If you are using a cross-domain Dojo build,"
  17. + " please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"
  18. + " to the path on your domain to iframe_history.html");
  19. throw e;
  20. }
  21. if(hasParentDojo){
  22. //Set the page title so IE history shows up with a somewhat correct name.
  23. document.title = window.parent.document.title;
  24. //Notify parent that we are loaded.
  25. var pdj = window.parent.dojo;
  26. if(pdj["back"]){
  27. pdj.back._iframeLoaded(null, window.location);
  28. }
  29. }
  30. }
  31. // -->
  32. </script>
  33. </head>
  34. <body onload="try{ init(); }catch(e){ alert(e); }">
  35. <h4>The Dojo Toolkit -- iframe_history.html</h4>
  36. <p>This file is used in Dojo's back/fwd button management.</p>
  37. </body>
  38. </html>