News for hackers. Stuff that matters.
Re:Facebook fan page with contact form, dialogs, navigation ... by txt on Wednesday January 13, 2010 @01:57PM (#1050794)
@callmeed, Yes that is almost correct...they allow you to run FBJS on load.

@poundy, A mouseover will not work to run JS, I have tried.

I have been playing around with FBML,FBJS for the past few weeks...Say you wanted to load a external page(or for your case your recent image galleries) in a iframe, you will have to do something like this...

<a onClick="iframe_wrapper.setInnerFBML(the_iframe);" style="cursor: pointer;"> Click here to view your image gallery</a>

<div id="iframe_wrapper"> <fb:iframe width="560" height="560" src="hxxp://mywebsite.com></div>

<fb:js-string var="the_iframe"><fb:iframe width="560" height="560" src="hxxp://mywebsite.com></fb:js-string>

<script type="text/javascript" charset="utf-8"> var iframe_wrapper = document.getElementById('iframe_wrapper'); </script> -->

Really not a big deal for the users to have to click, but after reading thru there wiki I think using an iframe on a static fbml tab is frowned upon (I may be wrong?)..But anyway,I managed to do some pretty cool stuff with FBML+FBJS that I haven't seen done yet...If anyone wants to chat about this topic,leave your aim/skype/gtalk..=]

There are no comments on this comment yet.