| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
| 5 | <title>Focus Issue Child</title> |
| 6 | <script> |
| 7 | // open the parent, if user tries to open the child directly |
| 8 | if (parent == window) |
| 9 | location.href = './test_UIWindowIssue_main.html'; |
| 10 | </script> |
| 11 | <script type="text/javascript" src="../../dojo/dojo.js" |
| 12 | data-dojo-config="parseOnLoad:false, isDebug:true"></script> |
| 13 | <script type="text/javascript"> |
| 14 | dojo.require("dojo.parser"); |
| 15 | dojo.require("dijit.Menu"); |
| 16 | dojo.require("dijit.MenuItem"); |
| 17 | dojo.require("dijit.PopupMenuItem"); |
| 18 | dojo.require("dijit.CheckedMenuItem"); |
| 19 | dojo.require("dijit.MenuSeparator"); |
| 20 | |
| 21 | // set objects in parent |
| 22 | for (var v in {'dijit':true, 'dojo':true, 'dojox':true}) |
| 23 | parent[v] = window[v]; |
| 24 | |
| 25 | // set context |
| 26 | dojo.setContext(window, parent.document); |
| 27 | |
| 28 | // fix focus issue |
| 29 | dojo.ready(function(){ |
| 30 | var handle = dijit.registerWin(dojo.doc.parentWindow || dojo.doc.defaultView); |
| 31 | if(dojo.isIE){ |
| 32 | dojo.addOnWindowUnload(function(){ |
| 33 | dijit.unregisterWin(handle); |
| 34 | handle = null; |
| 35 | }) |
| 36 | } |
| 37 | }); |
| 38 | |
| 39 | // parse the UI frame |
| 40 | dojo.parser.parse(); |
| 41 | |
| 42 | </script> |
| 43 | </head> |
| 44 | <body bgcolor="#e0e0e0"> |
| 45 | this frame is for loading script only |
| 46 | </body> |
| 47 | </html> |