"Unsafe JavaScript attempt to access frame with URL" error, but communication works. Anyone encountered this?

776 views
Skip to first unread message

findchris

unread,
Dec 14, 2011, 11:52:57 PM12/14/11
to eas...@googlegroups.com
Hi there.

I have a very simple easyXDM-facilitated lightbox that gets opened with an easyXDM iframe.
Consumer Code:
new socialvibe.easyXDM.Rpc({
  swf: provider_swf_url,
  remote: provider_window_url,
  container: lightbox_div,
  props: { style: {width: window_width }}
},
{
  remote: {},
  local: {
    finish: function() { alert('finished'); }
  }
});

Provider Code:
var rpc = new easyXDM.Rpc({
  swf: provider_swf_url,
},
{
  remote: {
    finish: {}
  },
  local: { }
});
rpc.sendFinish = function() { rpc.finish(); } // define a convenience method to be compatible with existing code

Can you see anything that might be generating the "Unsafe JavaScript attempt to access frame with URL" error message 3 times?

My test consumer page does include jquery and swfobject libraries, but I don't see how these would cause this error.  Otherwise, it is a very basic HTML page.

I'd appreciate any debugging tips.

Thanks so much.

findchris

unread,
Feb 9, 2012, 4:32:10 PM2/9/12
to easyxdm
Sorry to bump this, but had a question about this recently and wanted
to see if anyone else might have encountered this. I appreciate any
guidance.
-Chris

Øyvind Sean Kinsey

unread,
Feb 10, 2012, 1:09:56 AM2/10/12
to eas...@googlegroups.com
Whenever you embed flash on a page with multiple frames of different origin, you will see this warning.
Not much you can do about it..


Øyvind Sean Kinsey

Øyvind Sean Kinsey

unread,
Feb 10, 2012, 12:17:18 PM2/10/12
to eas...@googlegroups.com

Including flash on a page will trowe these. Not much to do about it..

Chris Johnson

unread,
Feb 10, 2012, 1:44:14 PM2/10/12
to eas...@googlegroups.com
Thanks for clarifying.

2012/2/10 Øyvind Sean Kinsey <oyv...@kinsey.no>
Reply all
Reply to author
Forward
0 new messages