sameBox:true is not working

Page: 1

Author Post
Member
Registered: Jan 2009
Posts: 8
Hi,

I'd like to open a new page within an exisiting floatbox (version 5.5) while resizing the floatbox to fit the new page. This is how my anchor's looking within the opened FB:


<a href="http://www.domain.de/index.php?id=1471" class="floatbox button" data-fb-options="width:700 height:500 padding:30 sameBox:true">Link-Text</a>


But instead of opening the page within the same FB a new floatbox is opened within the iframe.

If I change the width-option within the data-fb-options-attribut, it gets adapted correctly – so basically the options are used except the sameBox-option.

I tried with the "rev"-attribute aswell, with an older FB-version (5.0), different browsers etc. but with no success. Also the Firebug-console doesn't report any JS-error and I used this option on some other sites without problems. Do I have any kind of possibillities of debugging here?

Thx in advance,
Michael
Administrator
Registered: Aug 2008
Posts: 3382
I suspect you're going across two different domains here. If the iframe shown inside the floatbox is from a different domain than the top/main page, there is no possibility of re-using the floatbox from within the iframe. The floatbox is attached to the top document and scripting cannot go across domain boundaries to do anything with that box.

Of course, I'm just guessing about the cross-domain setup, which is why I really encourage people to link to working examples rather than posting code snippets.

Cheers...
Member
Registered: Jan 2009
Posts: 8
You were right – I checked the cross-domain-thing before but didn't realize, that the first floatbox was loaded with https while the second inner floatbox was called with usual http.

Thanks a lot for pointing me into the right direction!

Cheers,
Michael

Page: 1