MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / initIframe

Function initIframe

sdk/src/CloudSocketClientLib.js:1297–1320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1295 }
1296
1297 function initIframe() {
1298 if (self.iframe) {
1299 try {
1300 self.form.removeChild(self.iframe);
1301 } catch (e) {
1302 self.onError('jsonp polling iframe removal error', e);
1303 }
1304 }
1305
1306 try {
1307 // ie6 dynamic iframes with target="" support (thanks Chris Lambacher)
1308 var html = '<iframe src="javascript:0" name="' + self.iframeId + '">';
1309 iframe = document.createElement(html);
1310 } catch (e) {
1311 iframe = document.createElement('iframe');
1312 iframe.name = self.iframeId;
1313 iframe.src = 'javascript:0';
1314 }
1315
1316 iframe.id = self.iframeId;
1317
1318 self.form.appendChild(iframe);
1319 self.iframe = iframe;
1320 }
1321
1322 initIframe();
1323

Callers 2

completeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected