Alternative to an iframe on myspace?

Discussion in 'Programming' started by papa_face, Feb 22, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Hello,
    I was wondering, I have an iframe that I want to put onto myspace, however myspace doesnt allow iframes and replaces the tags with [iframe], so you cant put one on.
    Is there some other way I can get the source for the iframe to be displayed on myspace?
    e.g:
    
    <iframe src="http://google.com" style="border:1px black solid;" scrolling="yes" frameborder="yes" align="center" height = "300px" width = "50%">
    </iframe>
    Code (markup):
    wont work, but i would still like google.com to load on my myspace profile.

    The reason why i need this, is because im designing a script that i would like to let people display it on their myspace profile.
    I heard somewhere that it can be done by generating an image via PHP of the site you want to display and include an image in the page rather than an iframe.
    Any help would be appreciated.
     
    papa_face, Feb 22, 2007 IP
  2. ArcoJedi

    ArcoJedi Well-Known Member

    Messages:
    80
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    118
    #2
    MySpace may block iframes, but I believe that a lot of the stuff you might see might be JavaScript. You might try a remote javascript file hosted on your site -
    <script src="http://arconati.name/js/playtagger.js" type="text/javascript"> </script>
    Code (markup):
    - then in the locally hosted javascript file, 'response.write' your iframe. There is some information on how to properly escape stuff in JS here -
    http://aspjavascript.com/lesson02.asp
    - and your example would look like this -
    
    Response.Write("<iframe src=\"http://google.com\" style=\"border:1px black solid;\" scrolling=\"yes\" frameborder=\"yes\" align=\"center\" height=\"300px\" width=\"50%\">\r")
    Response.Write("</iframe>\r")
    
    Code (markup):
    I'm not a JS expert, so someone else please check my code and post any changes that are necessary.

    All of this assumes they don't block JavaScript, so test this first with a 'Hello World' -
    <script type="text/javascript">
    document.write("Hello World!");
    </script>
    Code (markup):
    I hope this helps.
     
    ArcoJedi, Feb 22, 2007 IP
  3. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    #3
    Thanks, but I believe they block javascript aswell.
     
    papa_face, Feb 22, 2007 IP
  4. ArcoJedi

    ArcoJedi Well-Known Member

    Messages:
    80
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    118
    #4
    Hmph, I was afraid of that. The only option then is to just distribute the image/link codes. Sorry.
     
    ArcoJedi, Feb 22, 2007 IP
  5. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    #5
    Cant i load the external page in flash or something?
     
    papa_face, Feb 22, 2007 IP
  6. ArcoJedi

    ArcoJedi Well-Known Member

    Messages:
    80
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    118
    #6
    I'm not familiar with flash, but if MySpace will allow external flash, then you might go in that direction. You can have images/links and even a form with interactivity in a flash file.
     
    ArcoJedi, Feb 22, 2007 IP
  7. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    #7
    Does anyone else, know of how I would do that in flash?
     
    papa_face, Feb 22, 2007 IP
  8. MarkusJ_NZ

    MarkusJ_NZ Well-Known Member

    Messages:
    240
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #8
    Hi, I dont know if this would work but you could give it a try

    Basically, replace the <> with the html equivalents...
     
    MarkusJ_NZ, Feb 22, 2007 IP
  9. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    #9
    Yeah lol, i tried that.They pharse the html first, and then check. So it doesnt work :(
     
    papa_face, Feb 22, 2007 IP
  10. MarkusJ_NZ

    MarkusJ_NZ Well-Known Member

    Messages:
    240
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #10
    Damn.... well worth a shot lol
     
    MarkusJ_NZ, Feb 22, 2007 IP
  11. bscdesign.com

    bscdesign.com Active Member

    Messages:
    681
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #11
    In flash I have shown an external Flash file inside of another Flash file. I bet you could include a URL instead of a Flash file. I have no idea how I did it except it was probably a componant in the componant panel.
     
    bscdesign.com, Feb 23, 2007 IP
Thread Status:
Not open for further replies.