Resizable Iframe for facebook iframe applications -
I have an IFrame application built on PHP.
I have set the size of the IFrame as resizable. / P>
One problem is that if the content is too large the display is not appropriate
I
available on my xd_receiver.htm
file Code is inside my template folder where my php files remain.
The code I am using is:
div id = "FB_HiddenIFrameContainer" style = "display: none; position: absolute; left: - 100px; top: -100px; width: 0 px; height: 0px; "& gt; & Lt; / Div & gt; & Lt; Script src = "http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; FB_RequireFeatures (["CanvasUtil"], function () {FB.XdComm.Server.init (xd_receiver.htm>); FB.CanvasClient.startTimerToSizeToContent ();}); & Lt; / Script & gt;
Please guide on how to make the display correct.
Although not sure about this, but large content can be a real problem,
Try to move this page to the end of your page
FB_RequireFeatures (["canvasuity"], function () {FB.XdComm.Server.init (xd_receiver.htm> );
FB.CanvasClient.startTimerToSizeToContent ();}); & Lt; / Script & gt;
Comments
Post a Comment