Click to See Complete Forum and Search --> : Load external html


r4gn0
01-13-2007, 02:26 PM
how can i load an external html to my page? im doing it this way


<div id="topbar">
<iframe src="http://gm-link.com/s.asp?m=l&i=107D.6243, top=50, left=50, width=400, height=380"></iframe>
</div>


but it doesnt resize the window, it shows it with scrolls.

tome100
01-13-2007, 05:28 PM
If your site supports asp, I would recommend doing it through ASP.

I don't program ASP myself, but if its any bit worth it, it should have an include command and you can just do a <% include file %> where you need the file included.

WebJoel
01-14-2007, 01:28 PM
Not quite as elegant as *php or *ssi, but here is an html-alternative which is better than FRAMEs..

<object type="text/html" data="http://mySite(dot)com" style="width:751px; height:475px;"></object>

Here, "http://mySite(dot)com" is the URL of the page you wish to 'insert' into your HTML document. It can be an from another server even (but do not 'hotlink' to someone else's site, -you'd be stealing their bandwidth), but most often and best-used, it merely links to a seperate *html page of your own making.
I used a width and height here, but use whatever you need. Do not style any width/height for "http://mySite(dot)com", -I don't think that they'd even be needed as the <object>'s settings would be the default for this.
You'll get scrollbars, btw. I think that IE throws in scrollbars by default, so you might even get 'shadowed-out' scrollbars....