easyXDM icon indicating copy to clipboard operation
easyXDM copied to clipboard

Nest bridge example in an iframe

Open zstiggz opened this issue 12 years ago • 2 comments

Hi,

I would like to use the bridge example, but I'd like to have the "openPopup()" function be called from inside an iframe created by easyXDM.

Currently, my application works fine outside of an iframe, but as soon as I next the whole thing inside one, I get the following error trace:

Uncaught TypeError: undefined is not a function easyXDM.js:1343 pub.onDOMReady easyXDM.js:1343 whenReady easyXDM.js:209 pub.init easyXDM.js:1352 pub.init easyXDM.js:2225 pub.init easyXDM.js:2563 defaults.init easyXDM.js:751 easyXDM.Rpc easyXDM.js:1265 openPopup taggle.js:2226 showLoginPrompt taggle.js:2191 writeReview taggle.js:1045 onclick

The goal is to have a "register" button inside an iframe on a 3rd party site. When the user clicks register, I'd like to open a popup to facilitate the registration flow, and once complete, message the original iframe with the new user data. Is this possible using easyXDM?

https://groups.google.com/forum/#!topic/easyxdm/kU1Rebnsnos

Thanks, Zach

zstiggz avatar Jul 02 '13 21:07 zstiggz

Not possible as all popups has to be initiated through user interaction to avoid popupblockers.

Øyvind Sean Kinsey San Francisco, CA

On Tue, Jul 2, 2013 at 2:38 PM, Zach Stiggelbout [email protected]:

Hi,

I would like to use the bridge example, but I'd like to have the "openPopup()" function be called from inside an iframe created by easyXDM.

Currently, my application works fine outside of an iframe, but as soon as I next the whole thing inside one, I get the following error trace:

Uncaught TypeError: undefined is not a function easyXDM.js:1343 pub.onDOMReady easyXDM.js:1343 whenReady easyXDM.js:209 pub.init easyXDM.js:1352 pub.init easyXDM.js:2225 pub.init easyXDM.js:2563 defaults.init easyXDM.js:751 easyXDM.Rpc easyXDM.js:1265 openPopup taggle.js:2226 showLoginPrompt taggle.js:2191 writeReview taggle.js:1045 onclick

The goal is to have a "register" button inside an iframe on a 3rd party site. When the user clicks register, I'd like to open a popup to facilitate the registration flow, and once complete, message the original iframe with the new user data. Is this possible using easyXDM?

https://groups.google.com/forum/#!topic/easyxdm/kU1Rebnsnos

Thanks, Zach

— Reply to this email directly or view it on GitHubhttps://github.com/oyvindkinsey/easyXDM/issues/232 .

oyvindkinsey avatar Jul 02 '13 22:07 oyvindkinsey

Thanks for the response.

The popup is being initiated through user interaction. User clicks "openPopup()" button, just like in your bridge example. The only difference is that this button is contained in an iframe that was created by easyXDM, rather than sitting in the normal document.

Z

On Jul 2, 2013, at 3:03 PM, Øyvind Sean Kinsey [email protected] wrote:

Not possible as all popups has to be initiated through user interaction to avoid popupblockers.

Øyvind Sean Kinsey San Francisco, CA

On Tue, Jul 2, 2013 at 2:38 PM, Zach Stiggelbout [email protected]:

Hi,

I would like to use the bridge example, but I'd like to have the "openPopup()" function be called from inside an iframe created by easyXDM.

Currently, my application works fine outside of an iframe, but as soon as I next the whole thing inside one, I get the following error trace:

Uncaught TypeError: undefined is not a function easyXDM.js:1343 pub.onDOMReady easyXDM.js:1343 whenReady easyXDM.js:209 pub.init easyXDM.js:1352 pub.init easyXDM.js:2225 pub.init easyXDM.js:2563 defaults.init easyXDM.js:751 easyXDM.Rpc easyXDM.js:1265 openPopup taggle.js:2226 showLoginPrompt taggle.js:2191 writeReview taggle.js:1045 onclick

The goal is to have a "register" button inside an iframe on a 3rd party site. When the user clicks register, I'd like to open a popup to facilitate the registration flow, and once complete, message the original iframe with the new user data. Is this possible using easyXDM?

https://groups.google.com/forum/#!topic/easyxdm/kU1Rebnsnos

Thanks, Zach

— Reply to this email directly or view it on GitHubhttps://github.com/oyvindkinsey/easyXDM/issues/232 .

— Reply to this email directly or view it on GitHub.

zstiggz avatar Jul 02 '13 22:07 zstiggz