| Author |
Post |
|
|
#1 Wed Jul 14, 2010 3:19 am
|
|
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.
|
|
|
#2 Wed Jul 14, 2010 3:30 am
|
|
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.
|
|
|
#3 Wed Jul 14, 2010 12:34 pm
|
|
Member
Registered: Apr 2009
Posts: 23
|
Okay. Thanks.
|
|
|
#4 Wed Jul 14, 2010 12:39 pm
|
|
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 ... ?
|
|
|
#5 Wed Jul 14, 2010 3:00 pm
|
|
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.
|
|
|
#6 Wed Jul 14, 2010 3:06 pm
|
|
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)
|