Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Nest bridge example in an iframe #232

Open
CaptainStiggz opened this issue Jul 2, 2013 · 2 comments
Open

Nest bridge example in an iframe #232

CaptainStiggz opened this issue Jul 2, 2013 · 2 comments

Comments

@CaptainStiggz
Copy link

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

@oyvindkinsey
Copy link
Owner

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//issues/232
.

@CaptainStiggz
Copy link
Author

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//issues/232
.


Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants