using 'new Dialog().showMessage()' from within a iframe?

May 16, 2009 at 5:38 PM
Edited May 16, 2009 at 6:51 PM

Hi, I started to play arround with this toollkit yesterday and it solves all my needs for now and to see that it get's vitalized again after some month sleeping seem a positive plus! :)
However, as I'm quite new and still feel my way arround I have one question. I started of by creating a project based on Iframe and so far all well but I now try to use som FBJS features like below. 

<a href="#" onclick="new Dialog().showMessage('.. Traveling Babies..', 'Select a baby and send it to your comrade...');return false;" style="border-top: solid 1px;"><asp:Label ID="LabelWelcome" runat=server Text="... welcome message here ..."></asp:Label></a>

What I don't seems to understand is if I only have the option to use the above FBJS Dialogs through FBML or if I would be able to leverage from the FBJS in an iframe by means of the Facebook Developer toolkit? Anyone able to shed some light here?



May 17, 2009 at 9:02 PM

Hi, I have solved part of my problems as I found this thread.
Basically moved the DialogCode in to a function.

     function ProcessLoginBox()
          var dialog = new FB.UI.FBMLPopupDialog('Login', '');
          var fbml = "<fb:fbml>"+ "<fb:iframe frameborder='0' smartsize='true' width='500' height='300' src=''></fb:iframe>" +"</fb:fbml>";