oyvindkinsey / easyXDM

A javascript library providing cross-browser, cross-site messaging/method invocation.

Home Page:http://easyxdm.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nest bridge example in an iframe

CaptainStiggz opened this issue · comments

commented

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

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
notifications@github.comwrote:

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
.

commented

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 notifications@github.com 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
notifications@github.comwrote:

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.