Floatbox: The premier windowing system for web pages

Forum guidelines:

- Please read the docs first.

- The forum's search function can be very helpful.

- Give an online example of problems if you can.

- Try to behave.

Support & General Discussion » Facebook implementation

Facebook implementation

Page: 1

Author Post
Member
Registered: Apr 2009
Posts: 23
Please have a look at this.
http://www.growth trac dot com/test-facebook.php

We're trying to launch the Facebook "share" feature
within Floatbox.

Note that Floatbox is "grayed out" and the FB page is unavailable.
Can you help?

Thanks!

PS Haven't figured out yet how to close Floatbox after
submitting the Facebook form.
Administrator
Registered: Aug 2008
Posts: 1522
That's the facebook site that's graying out their content. They have javascript on that page (and all facebook pages I think) that detect if their page is running in an iframe or not. If it is, they insert the grey overlay and assign an onclick action of onclick="top.location.href=window.location.href" to that overlay.

Facebook doesn't want their pages to display in another site's iframe, so it can't be displayed in a Floatbox iframe from your site. There's no way around this.
Member
Registered: Apr 2009
Posts: 23
Okay. Thanks.
Member
Registered: Apr 2009
Posts: 23
hmm. Do you think it's possible to display the FB page within a popup?
Something like: onClick=window.open ... ?
Administrator
Registered: Aug 2008
Posts: 1522
Yes, that should work because the page will be shown in its own browser window and not in an iframe. A better way may be to just link to it with target="_blank" in the linking anchor. Then the facebook page will open in a new tab or new browser instance depending on how someone has their browser configured.
Member
Registered: Apr 2009
Posts: 23
perfect. thanks for the assist.

(Too bad there isn't a workaround for Floatbox. It would be the ideal solution)

Page: 1

Support & General Discussion » Facebook implementation

Floatbox Forum is powered by UseBB 1 Forum Software