102
102
var content = new Y.YUI2.util.Element('scorm_content');
104
// first try IE way - it can not set name attribute later
105
// and also it has some restrictions on DOM access from object tag
106
if (window_name || node.title == null) {
107
var obj = document.createElement('<iframe id="scorm_object" src="">');
109
var mine = window.open('','','width=1,height=1,left=0,top=0,scrollbars=no');
111
alert(M.str.scorm.popupsblocked);
117
var obj = document.createElement('<iframe id="scorm_object" src="'+url_prefix + node.title+'">');
119
// fudge IE7 to redraw the screen
120
if (Y.YUI2.env.ua.ie > 5 && Y.YUI2.env.ua.ie < 8) {
121
obj.attachEvent("onload", scorm_resize_parent);
124
var obj = document.createElement('object');
125
obj.setAttribute('id', 'scorm_object');
126
obj.setAttribute('type', 'text/html');
127
if (!window_name && node.title != null) {
128
obj.setAttribute('data', url_prefix + node.title);
131
var mine = window.open('','','width=1,height=1,left=0,top=0,scrollbars=no');
133
alert(M.str.scorm.popupsblocked);
103
var obj = document.createElement('iframe');
104
obj.setAttribute('id', 'scorm_object');
105
obj.setAttribute('type', 'text/html');
106
if (!window_name && node.title != null) {
107
obj.setAttribute('src', url_prefix + node.title);
110
var mine = window.open('','','width=1,height=1,left=0,top=0,scrollbars=no');
112
alert(M.str.scorm.popupsblocked);
138
117
var old = Y.YUI2.util.Dom.get('scorm_object');
140
119
if(window_name) {
178
157
scoes_nav[launch_sco].hidecontinue == 1));
181
var scorm_resize_parent = function() {
182
// fudge IE7 to redraw the screen
183
parent.resizeBy(-10, -10);
184
parent.resizeBy(10, 10);
185
var ifr = Y.YUI2.util.Dom.get('scorm_object');
187
ifr.detachEvent("onload", scorm_resize_parent);
191
160
var scorm_resize_layout = function(alsowidth) {
192
161
if (window_name) {