MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Adusting application height within an iFrame app

Last post 08-14-2009 5:33 AM by Ajeena. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 07-08-2009 8:05 AM

    Adusting application height within an iFrame app

    Is this even possible? I've been looking at applications that resize the canvas dynamically according to the height of the document in the iframe.

     
    if ($(document).height() > 700) {
        gadgets.window.adjustHeight(1400);
    }

     However this is clearly using opensocial, and gadgets isn't available to me in the canvas. I am pretty new to a Javascript and I don't necessarily understand where the javascript scope extends to ie. do the parent and iframe contents sit in the same scope so it opensocial is included in the top window is it available to the canvas too? or is that rubbish.

     Is there a solution for those of us using iFrames to external sites?

     Many thanks

     RobL

  • 07-08-2009 10:05 AM In reply to

    Re: Adusting application height within an iFrame app

    Hi Braindeaf

     Yes is posible just call gadgets.window.adjustHeight(); with no parameter that will try to resize the iFrame to fit the content. 

    Jorge

  • 07-28-2009 11:28 AM In reply to

    • Mike
    • Top 500 Contributor
    • Joined on 07-09-2008
    • Posts 16

    Re: Adusting application height within an iFrame app

    Is that really working? I am trying to do this in my iframe app, and it's not doing anything at all

  • 08-14-2009 5:33 AM In reply to

    • Ajeena
    • Not Ranked
    • Joined on 05-19-2009
    • Posts 8

    Re: Adusting application height within an iFrame app

     Hi,

    It completely depends on myspace API. At times, we can see that Myspace doesn't respond properly. This was reported to myspace many times and still not fixed. Please let me know if there is anyone who can help me to resolve this issue.

    Regards

    Ajeena

Page 1 of 1 (4 items)