1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Embed an External Page Without an Iframe?

Discussion in 'HTML & Website Design' started by anil verma, Jun 24, 2013.

  1. #1
    i need embed external site without iframe i don"t find any code work for me ..if one genies here ans my questions

    i appreciate it..
     
    anil verma, Jun 24, 2013 IP
  2. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #2
    What for do you need it and why can't you just use iframe?
     
    ActiveFrost, Jun 24, 2013 IP
  3. anil verma

    anil verma Member

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #3
    Well some i don"t wana use Iframe in my Bolgs..i though some expert will ans my questions
     
    anil verma, Jun 24, 2013 IP
  4. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #4
    You can try cURL. Download your websites content and echo it to a div or something like that.

    Note: This isn't HTML anymore.
     
    ActiveFrost, Jun 24, 2013 IP
  5. alen2202

    alen2202 Greenhorn

    Messages:
    10
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    18
    #5
    Hi,

    You can try this:

    <!--[if IE]>
    <object classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" data="http://www.google.be">
    <p>backup content</p>
    </object>
    <![endif]-->
     
    <!--[if !IE]> <-->
    <object type="text/html" data="http://www.flickr.com" style="width:100%; height:100%">
    <p>backup content</p>
    </object>
    <!--> <![endif]-->
    HTML:
     
    Last edited by a moderator: Jun 24, 2013
    alen2202, Jun 24, 2013 IP
    AdChoices likes this.
  6. vikaskumarbhardwaj

    vikaskumarbhardwaj Banned

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    98
    Digital Goods:
    1
    #6
    Hi,
    It depends on which method you prefer.
    The first will be based on php, in which you can get all site content via php and display on your page.
      echo file_get_contents('http://www.google.de');
    PHP:
    or Via jQuery Ajax where you can use this code to get it done.
    $.ajax({
        url: "http://www.website.com",
        type: 'GET',
        success: function(res) {
            var text = res.responseText;
            // then you can manipulate your text as you wish
        }
    });
    
    HTML:
     
    vikaskumarbhardwaj, Jun 25, 2013 IP
  7. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #7
    The proper element to use is "object". For example:
    <!DOCTYPE html>
    
    <html>
    <head>
      <meta content="text/html; charset=utf-8"
            http-equiv="Content-Type">
    
      <title>test document</title>
      <base href="#">
      <style type="text/css">
    /*<![CDATA[*/
    
      html, body {
        font: 100%/1.5 sans-serif;
        margin: 0;
        }
    
      /*]]>*/
      </style>
    </head>
    
    <body>
      <p><object data= 
      "https://forums.digitalpoint.com/threads/embed-an-external-page-without-an-iframe.2663112/"
              type="text/html">
        <p>If nothing showed up except this text, <a href= 
        "https://forums.digitalpoint.com/threads/embed-an-external-page-without-an-iframe.2663112/">
        click here to access the page directly</a></p>
      </object></p>
    </body>
    </html>
    Code (markup):
    cheers,

    gary
     
    kk5st, Jun 25, 2013 IP