oyvindkinsey/easyXDM — Issue #157: FlashTransport in IE7
Author: vladykx
Created: 2012-02-22 16:54:02+00:00
State: open

Doesn't work in IE7. Forcing Flash in Chrome works ok.

RBAUTH.partnerRpc = new easyXDM.Rpc({
local: 'http://dev2.local/js/plugin/name.html',
remote: host + '/oauth/hawaiienergy/container/?client_id=' + RBAUTH.options['client'],
swf: 'http://dev2.local/js/plugin/easyxdm.swf',
container: container
},
{
local: {
initContainer: function(params) {
var frame = container.getElementsByTagName("iframe")[0];

var button = document.createElement('img');
button.setAttribute('src', host +
'/skin/frontend/enterprise/blank/images/plugin/join_with_rb.jpg');
button.style.cursor = 'pointer'
button.style.display = 'none';

container.insertBefore(button, frame);

button.onclick = function() {
if (frame.style.display == 'none') {
frame.style.display = 'block';
} else {
frame.style.display = 'none';
}
};
},
initIframe: function(params) {
if (!params.enabled)
return;

var frame = container.getElementsByTagName("iframe")[0];
var button = container.getElementsByTagName('img')[0];

frame.style.height = params.height;
frame.style.width = params.width;

if (!RBAUTH.initialized) {
RBAUTH.initialized = true;
frame.style.display = 'none';
}

if (params.hide)
frame.style.display = 'none';

button.style.display = '';
},
authHandler: function(params) {
if (typeof window[RBAUTH.options['auth_handler']] == "function")
window[RBAUTH.options['auth_handler']](params);
},
signupHandler: function() {
if (typeof window[RBAUTH.options['signup_handler']] == "function")
window[RBAUTH.options['signup_handler']]();
}
}

}

Log:
dev2.local - 18:48:51.265:{Private}: firing dom_onReady
dev2.local - 18:48:51.365:easyXDM.Rpc: constructor
dev2.local - 18:48:51.365:{Private}: preparing transport stack
dev2.local - 18:48:51.365:{Private}: resolved url 'http://dev1.local/oauth/hawaiienergy/container/?client_id=02591531689'
dev2.local - 18:48:51.375:{Private}: using protocol: 6
dev2.local - 18:48:51.375:easyXDM.stack.FlashTransport: constructor
dev2.local - 18:48:51.375:easyXDM.stack.QueueBehavior: constructor
dev2.local - 18:48:51.375:easyXDM.stack.RpcBehavior: init
dev2.local - 18:48:51.375:easyXDM.stack.FlashTransport: init
dev2.local - 18:48:51.375:easyXDM.Fn: storing function flash_default8671_init
dev2.local - 18:48:51.375:easyXDM.Fn: storing function flash_default8671_onMessage
dev2.local - 18:48:51.375:{Private}: resolved url 'http://dev2.local/js/plugin/easyxdm.swf'
dev2.local - 18:48:53.448:easyXDM.stack.FlashTransport: creating factory with SWF from dev2.local
dev2.local - 18:48:53.448:easyXDM.Fn: storing function flash_loadeddev2_local

No error happens, but nothing loads