Include site within Site

Discussion in 'HTML & Website Design' started by hemanthjava, Dec 12, 2008.

  1. #1
    hemanthjava, Dec 12, 2008 IP
  2. dejangex

    dejangex Peon

    Messages:
    113
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Using the iframe ofcourse.

    <iframe name="iframe" src="http://google.com" width="100%" height="500" scrolling="auto" align="top" frameborder="0">Insert some text here for the browsers that do not support iframe</iframe>
    Code (markup):
     
    dejangex, Dec 12, 2008 IP
  3. 2advance

    2advance Well-Known Member

    Messages:
    2,614
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    140
    #3
    There are several ways of doing what you want - the best way depends on exactly what you are trying to achieve.

    The simplest way is to use an inline frame or iframe. The HTML looks like this:

    <iframe src="name-of-page.html" width="150" height="140" frameborder="0" scrolling="no"></iframe>

    However if you are wanting to include something like a menu on each page of your site, you should look at using a server-side include (SSI), which is a special comment recognised by the server and used to insert a markup snippet held in a separate file:

    <!--#include virtual="name-of-page.html" -->

    Your server needs to support this, though. Most do, but sometimes only on files with a .shtml extension.
     
    2advance, Dec 13, 2008 IP
  4. facedown_pogi

    facedown_pogi Peon

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    iframe the best to send views to other websites you own... or you want to display other pages like page100.html iframe it to your main page.
     
    facedown_pogi, Dec 13, 2008 IP
  5. paal1984

    paal1984 Greenhorn

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    I think you can actually use iframes, im quite sure
     
    paal1984, Dec 14, 2008 IP
  6. chrizz_msweb

    chrizz_msweb Greenhorn

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    Alternatively, try grabbing. Using grabbing, you can choose which part of other site you want to display in your site
     
    chrizz_msweb, Dec 15, 2008 IP
  7. hkp819

    hkp819 Guest

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    using iframe you can do it.

    <iframe src="page.html" width="100px" height="100px" /> instead of <iframe width="100" height="100" src="Full URL To File">
    </iframe>but maybe both will work.
     
    hkp819, Dec 15, 2008 IP
  8. hemanthjava

    hemanthjava Well-Known Member

    Messages:
    1,258
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #8
    Thank you so much everyone. I will try these options and get back if in doubt
     
    hemanthjava, Dec 15, 2008 IP
  9. hemanthjava

    hemanthjava Well-Known Member

    Messages:
    1,258
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #9
    Guys this approach did not work quite well for me. I had included the code and the output no doubt works having other site as a part of the iframe. But the rest of the blog content completely vanished as shown in the attachment.

    Sorry for the bad image quality. I did not have space to upload in DP.
     
    hemanthjava, Dec 19, 2008 IP
  10. erhythm

    erhythm Banned

    Messages:
    77
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    well iframe is quite working for me and few of my friends in Dp laso, i don't know why it's not working for you. Well you can ask the details of that if you can, only then i can tell you the exact details . .
    Regards
    erhythm
     
    erhythm, Dec 19, 2008 IP
  11. hemanthjava

    hemanthjava Well-Known Member

    Messages:
    1,258
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #11
    See, now if you look at http://www.iwebie.com , you see the complete site and not just this post. But in the screen shot when I included the code as mentioned above, only that post appeared and it ended there without showing the remaining posts, the google ads etc
     
    hemanthjava, Dec 19, 2008 IP
  12. hardcore-

    hardcore- Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    You can always use ajax if you want
     
    hardcore-, Dec 20, 2008 IP
  13. hemanthjava

    hemanthjava Well-Known Member

    Messages:
    1,258
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #13
    hemanthjava, Dec 20, 2008 IP
  14. erhythm

    erhythm Banned

    Messages:
    77
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Hey come on dude, You can't use ajax i think, if you go for some other page surely it will refresh the page

    So no use of ajax and all.

    Try something else. Hope any one come with good idea. . Will see. .

    Regards
    Erhythm
     
    erhythm, Dec 20, 2008 IP
  15. hemanthjava

    hemanthjava Well-Known Member

    Messages:
    1,258
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #15
    Oh ok... This is something I have been looking for from a long time. Can't this be done at all
     
    hemanthjava, Dec 20, 2008 IP
  16. hemanthjava

    hemanthjava Well-Known Member

    Messages:
    1,258
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #16
    Hey guys.. Now its working... Thanks everyone

    The <strong>Tamilnadu Polytechnic Results</strong> for Diploma Exams held in October 2008 have been declared by <strong>TNDTE.</strong>

    <span style="text-decoration: underline;"><strong>Check the results at</strong></span>

    <a href="http://www.tndte.com/DOTE2/index2.htm" target="_blank"><strong>http://www.tndte.com/DOTE2/index2.htm</strong></a>
     
    hemanthjava, Dec 20, 2008 IP
  17. erhythm

    erhythm Banned

    Messages:
    77
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Cool Buddy,

    Finally you got it by your own and also sharing with us. Keep it up.

    Cheers!!
     
    erhythm, Dec 20, 2008 IP