Dear Mr Floatbox,
I am a happy user of your product, and would like to expand the usage.
I would like to run a function before the startup of the floatbox to do some checks, but I am not able to make it work.
I have created a test page to illustrate my problem at http://www.maaijorn.com/FloatTest.html
My problem is that I am not able to make the fbPageOptions "beforeBoxStart" work with a function ( as show in the API guide ).
I would be glad for any hint to get me started !
Thank you very much on forehand.
Kind regards
J?rn
fbPageOptions beforeBoxStart - how does it work ?
Page: 1
Author | Post |
---|---|
JoernH
|
#1 Wed May 27, 2009 6:48 pm
|
Guest | |
#2 Wed May 27, 2009 7:11 pm
|
|
Administrator
Registered: Aug 2008
Posts: 3382
|
My apologies. The API reference has got a syntactically incorrect example and it's my mistake that is causing you grief. The example should be:
fbPageOptions = { beforeBoxStart: function() { alert('eat a peach'); } } You can also use the equivalent fbPageOptions = { beforeBoxStart: "alert('eat a peach');" } A silly error on my part. I'll get the docs fixed up. |
JoernH
|
#3 Wed May 27, 2009 7:26 pm
|
Guest |
Thanx a bunch mate. You are a * !
... and I really should have been able to solve that one myself |
Page: 1