Welcome Developers!

in

Welcome!

in

Got an IFrame to work :)

Last post 01-25-2011 4:47 AM by Icke. 13 replies.
Page 1 of 1 (14 items)
Sort Posts: Previous Next
  • 02-08-2008 5:14 PM

    • mEgo
    • Top 500 Contributor
    • Joined on 02-02-2008
    • Posts 14

    Got an IFrame to work :)

    This is probably posted already or on the docs, but I got an iframe to display in a profile page nicely. It tricked me because the HTML of my source actually runs in an iframe, so I have scrollbar and spacing problems. I put this code in the source for my profile page to simply display an iframe from my site in the left column without scrollbars:

    <style>
    * { margin: 0; padding: 0; overflow-x: hidden; overflow-y: hidden;}
    </style>
    <iframe id="megoIframe" name="megoIframe" frameborder="NO" border="0" framespacing="0" width="300" height="500" src="http://www.mysite.com/userpage" scrollbars="no"></iframe>

  • 02-09-2008 7:15 PM In reply to

    • Jesse
    • Not Ranked
    • Joined on 02-05-2008
    • Posts 2

    Re: Got an IFrame to work :)

     Yeah I dont see how this is an accomplishment of any kind.  OpenSocial apps run in an iframe.

    Filed under:
  • 02-09-2008 9:42 PM In reply to

    Re: Got an IFrame to work :)

     

    In addition, any portion of your MySpace Applications and MySpace Application Content that will appear on a MySpace Profile must not:

    • contain or create IFRAMEs;
    • cause their containing IFRAME to be navigated to new location, for example, by using JavaScript code, form posts, or containing links;
    • contain or create SCRIPT tags pointing to external sources except those that are explicitly allowed; and
    • may not contain or create links to external CSS style sheets.
    http://developer.myspace.com/community/myspace/applicationguidelines.aspx
  • 02-11-2008 11:09 PM In reply to

    Re: Got an IFrame to work :)

    Thanks for posting the info guys I am sure there will be others wondering what can/should be done. We should probably enhance the validation tool too to let you know right away what is not allowed

  • 02-29-2008 9:22 AM In reply to

    Re: Got an IFrame to work :)

    NEVER MIND: I didn't notice that the iframe restriction is only in the profile. 


  • 03-01-2008 9:56 AM In reply to

    Re: Got an IFrame to work :)

    You can put an iframe on the Canvas surface.  The area your app has on the myspace profile is equivalent to the 'application profile box' in facebook.

     

  • 03-03-2008 11:01 PM In reply to

    • VORUN
    • Top 500 Contributor
    • Joined on 02-05-2008
    • Posts 13

    Re: Got an IFrame to work :)

    Jonathan,

    so are you saying that in the Canvas page we are allowed iframes and script tags that point to external js files?

     

    Thank you in advance

  • 03-06-2008 10:21 PM In reply to

    • Smart
    • Top 75 Contributor
    • Joined on 02-05-2008
    • Posts 54

    Re: Got an IFrame to work :)

    that will appear on a MySpace Profile 

     Notice it says "profile."  You can have iframes on your canvas.

  • 03-07-2008 8:09 AM In reply to

    • James
    • Not Ranked
    • Joined on 02-25-2008
    • Posts 6

    Re: Got an IFrame to work :)

    Andrew:

     And you do realize that by blocking iframes, you are also blocking Google adsense - the top advertisement revenue source for most publishers.

    Of course they do, and this is not really a limitation since avertisements of any kind are not allowed on your profile page.  This is the worst paragraph ever, but from the TOS: 

    5.1 MySpace allows you to include advertising, sponsorship or other commercial or promotional content (collectively, “Advertising”) on your Application Profile Page(s) and Canvas Page(s) in the areas which you control.  MySpace Application Content which appears on a MySpace Profile or a page which contains any other MySpace Application (other than your other MySpace Applications or a MySpace Application which in such instance you have agreed to provide Advertising for) may not contain any Advertising.
  • 03-31-2008 7:13 AM In reply to

    Re: Got an IFrame to work :)

    can we see an example of what's allowed and what's not allowed? 

  • 07-15-2008 9:29 AM In reply to

    Re: Got an IFrame to work :)

    Another reason not to use those stupid MySpace Apps.  This verbiage makes it clear that the use of Apps alone preclude advertising by the user.  With no Apps, you can advertise at will.

    Since the only reason I am on MySpace is to promote my stuff, i.e. advertise, any restrictions on my ability to do so that cannot be worked around will result in my clearing and terminating my accounts.

    As it is, MySpace has thus far been a colossal waste of time. If this code works so that I can get my Amazon banners on my profile, I will try it for a bit longer. 

    Carl Peter Klapper

    http://www.abstractdev.com/publisher.html 

  • 07-16-2008 3:08 PM In reply to

    • $
    • Top 25 Contributor
    • Joined on 06-28-2008
    • Posts 158

    Re: Got an IFrame to work :)

     Hey Carl, not to get you even more upset, but why are you angry that MySpace doesn't allow you to use their bandwidth and server resources to host your adds (which generate no revenue for them, yet it takes up valuable screen real estate)?  There is no such thing as a free lunch my friend and if we all want to play nicely we have to play in this really cool sandbox that MDP was so gracious to open up for us.  Also, if you think the fact that you can embed flash in your profile is a missight or something that MySpace can't prevent then I regret to inform you that they can prevent flash anytime they want to.  The fact that they allow us, again using their server bandwidth, to host flash at all on profiles is cool IMHO.  I know several social networking sites, some very prominent ones, that do not allow such luxuries.

     Oh, and fine final point, it is expressly against the TOS to advertise on anywhere but your canvas surface (again, you will be detracting from MySpace screen real estate, and the people that PAY for the servers that allow us to have this luxury, i.e. advertisers), so your argument of allowing banner adds, or adds of any sort, on the profile is moot - you won't be allowed too (and for good reason I might add, I know I would not have a single application if they allowed adds on profile or home surfaces, last thing I want to see is a kaleidoscope of banner adds).

  • 01-21-2010 9:33 AM In reply to

    Re: Got an IFrame to work :)

    You can use a MySpace application to embed the iframe code.

    Here is how: http://wiki.developer.myspace.com/index.php?title=Example_Application:_Hello_World

     

  • 01-25-2011 4:47 AM In reply to

    • Icke
    • Not Ranked
    • Joined on 04-02-2010
    • Posts 2

    Re: Got an IFrame to work :)

     sorry, i can't see my test-app on my profile page. it seems only to work in an external canvas.

    i would like to have iframe-content inside an integrated module on my profile page. is there any example?

Page 1 of 1 (14 items)