SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast mohammedsk's Avatar
    Join Date
    Nov 2005
    Location
    Columbia, Missouri
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Forcing Gmail to open in iFrame

    Is there any JavaScript that forces Gmail and others like Yahoo mail to open in iFrame or a frame?
    Gmail and Yahoo always kicks out of the frame.
    I looked online but did not really find something useful specially my knowledege with JavaScript is very limited.

    Code I have placed in the body:
    Code:
    <iframe id="datamain" src="http://www.gmail.com" width=700 height=650 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=yes></iframe>

    Thanks for any help,

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    They "kick other frames out" because they don't want them in there to begin with.

    How would you like it if you were to find out that your site was being included in someone else's to make it appear like it was a part of their work? You'd be unhappy about it, wouldn't you?

    I hate to say it but this is one of those situations where you should just walk away from the idea (of using iFrames to load entire Web pages that don't belong to you) and use the technologies available for far more constructive--and legitimate--purposes.

  3. #3
    SitePoint Enthusiast mohammedsk's Avatar
    Join Date
    Nov 2005
    Location
    Columbia, Missouri
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow,
    I am here just to ask a question, you could just answer my question.
    I hope you would be more friendly next time.

  4. #4
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Frankly, it's just not possible.

  5. #5
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mohammedsk:

    Dan simply answered your first question - how can you do it (you can't) and also your predicted next question (why not).

    As an idea for your site, maybe you could allow gmail to be opened in a new window instead of an iframe.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •