Changeset 13682 for dojo/trunk/tests/_base/_loader/afterOnLoad.html
- Timestamp:
- 05/10/08 17:29:47 (7 months ago)
- Files:
-
- 1 modified
-
dojo/trunk/tests/_base/_loader/afterOnLoad.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/tests/_base/_loader/afterOnLoad.html
r12492 r13682 10 10 11 11 <script type="text/javascript"> 12 window.onload = function(){12 function init(){ 13 13 //Create global djConfig object first. We cannot use the djConfig attribute 14 14 //on the script tag since it may not be visible in some browsers at the time … … 20 20 parseOnLoad: true, 21 21 afterOnLoad:true, 22 addOnLoad: function(){ 23 //This function is registered with 24 //dojo.addOnLoad as Dojo is defined after 25 //being added to the DOM. 26 console.log("djConfig.addOnLoad callback fired OK: dojo.parser.parse is a " 27 + (typeof dojo.parser.parse)); 28 }, 22 29 require: [ 23 30 'dojo.parser', … … 37 44 console.debug("onChange for id = " + id + ", value: " + newValue); 38 45 } 46 47 //Register onload init function that will add Dojo to the page. 48 if(window.addEventListener){ 49 window.addEventListener("load", init, false); 50 }else{ 51 window.attachEvent("onload", init); 52 } 53 39 54 </script> 40 55 </head>