SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Nov 2005
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is there a way to load an external site into a div?

    Hey all hope your weekends going well

    I have a question been googling for hours now.

    Is there a way to load an external site into a div? i.e. load say www.someoneelseswebsite.com into <div id="displaySite"></div>?

    Kinda like how you can load any other website into an iframe?

    Many thanks!

  2. #2
    .* draziW tnioPetiS *. bronze trophy
    Join Date
    Jun 2004
    Location
    "Then I figure the most good good guy will win."
    Posts
    1,666
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think it is not possible... a frame/iframe is needed. I would like to know if I am wrong though.

  3. #3
    Non-Member
    Join Date
    Aug 2007
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Second choice: AJAX.
    Third choice: server language

  4. #4
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use an iframe.

    Can't use ajax unless the "external site" is in the same domain as "your site" which I doubt.

  5. #5
    SitePoint Zealot
    Join Date
    Sep 2006
    Posts
    145
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Although you can load an external page into yours using Ajax, I would recommend that you use an iframe. It will also prevent any layout issues from occurring on the website you're loading into yours.


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
  •