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 » Scrolling from flash-launch

Scrolling from flash-launch

Page: 1

Author Post
Member
Registered: Jan 2010
Posts: 19
I have some sponsor-websites that launch out of my flash-menu on my website.
I just noticed that when you open them up they are non-scrollable.
Is there any way to resurrect this or should I tell flash to open the sponsor websites in a new window?
Administrator
Registered: Aug 2008
Posts: 1530
Do you mean that the external sites open as iframes in a floatbox and that the floatbox has no scrollbars even though there is content in the frame to be scrolled? This sounds odd and I'd really like to see an example.

But in the meantime you could try setting "scrolling:auto" in the options for the link or call that opens the floatbox. I say that the behaviour sounds odd because "auto" is the default setting for iframe content.
Member
Registered: Jan 2010
Posts: 19
That's right - but I am launching floatbox from a flash menu.

For an example go to http://www.thatsfishing.com.au. And on the big jampacked menu at the top/ the flash menu go to the right and click on
Wilsons Fishing Tackle Specialist or on
FishingFever

Can you set floatbox options from Flash menu links?

I have tried it so far on 2 macs 10.5.8 in safari and firefox
and on a PC, Windows XP in IE
Administrator
Registered: Aug 2008
Posts: 1530
Sure, you can set floatbox options from flash menu links.
I assume you are calling fb.start('http://www.wilsonfishing.com/') from your flash object.
The second parameter to fb.start is an options string, like this:
fb.start('http://www.wilsonfishing.com/', 'scrolling:auto')

See the API reference.

And that's exactly what you have to do. You've encountered a bug where iframe content that has neither a height nor a scrolling option set for it will fail to show scrollbars. I'll have that fixed in the next release but in the meantime you need to explicitly set either height or scrolling.
Member
Registered: Jan 2010
Posts: 19
this is what I'm calling now

ad2.onRelease = function() {
getURL("javascript:fb.start({ href:'http://www.wilsonfishing.com/','scrolling:auto'})");
};


and it doesn't work at all. clicking the buttons, won't open the window.

also tried setting the height

ad2.onRelease = function() {
getURL("javascript:fb.start({ href:'http://www.wilsonfishing.com/','height:500'})");
};


I'm pretty certain I have the latest version of floatbox. Don't know what can be causing it? Ever come across this before?
Administrator
Registered: Aug 2008
Posts: 1530
Your fb.start syntax is messed up. Note the differences between what you quoted and the example I gave (curly braces, "href:" prefix):
:D Good--> fb.start( 'http://www.wilsonfishing.com/', 'scrolling:auto' )
:'( Bad --> fb.start({ href:'http://www.wilsonfishing.com/','scrolling:auto'})
Member
Registered: Jan 2010
Posts: 19
oh of course. Yes it's working now.
Still have to note that I did need to specify scrolling:auto, and without it the buttons wouldn't work at all.

final code:
ad2.onRelease = function() {
getURL("javascript:fb.start('http://www.wilsonfishing.com/', 'scrolling:auto width:60%')");
};


Edit: thanks!
Administrator
Registered: Aug 2008
Posts: 1530
The scrolling:auto is certainly not required to be there. It's likely there was a typo in the call that didn't use that, like perhaps the comma still present between parameters, but no second parameter. That would be enough to halt the js interpreter with a syntax error.

Page: 1

Support & General Discussion » Scrolling from flash-launch

Floatbox Forum is powered by UseBB 1 Forum Software