SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: open iframe url

  1. #1
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    321
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    open iframe url

    Fighting with this for an hour now.


    <div class="mapframe">
    <iframe <a href="http://www.city-data.com/city/california.html"></a>"
    </iframe>
    </div>

    The iframe opens well enough but no content from the city-data page.

    Any suggestions?

    Thanks . . . Rick

  2. #2
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    321
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This works . . .

    <div class="mapframe">
    <iframe src="http://www.city-data.com/city/california.html">
    You need a Frames Capable browser to view this content.
    </iframe>
    </div>

    Hope this helps someone.

    Rick

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,200
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Yes, this is basically the setup for an iframe:

    Code:
    <iframe src="http://www.page-to-be-pulled-in.html">
    </iframe>
    Any time I want to know how an element works, I Google examples of it first, or use the SitePoint Reference, to avoid falling down ditches like this.


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
  •