Grabing content from server

M

Martin Honnen

Kerberos said:
I'd like to create a function that grabs some content from a server
(html file) and puts this content into a DIV.

What is wrong with
<div>
<iframe name="iframeName" width="100%" height="200"
src="whatever.html"></iframe>
</div>
and then using links e.g.
<a href="htmlFile.html" target="iframeName">link</a>
or if you need scripting
if (window.frames && window.frames.iframeName) {
window.frames.iframeName.location.href = 'htmlFile.html';
}
 
K

Kerberos

What is wrong with
<div>
<iframe name="iframeName" width="100%" height="200"
src="whatever.html"></iframe>
</div>
and then using links e.g.
<a href="htmlFile.html" target="iframeName">link</a>
or if you need scripting
if (window.frames && window.frames.iframeName) {
window.frames.iframeName.location.href = 'htmlFile.html';
}

The problem with iframes is, beside the fact that frames in general are
deprecated, that the content wraps inside the frame. Using a div, it
extends to 100%.

I've been using iframes so far, but I'm looking for another solution.
Thanks,

--

Kerberos.

http://www.opera.com
http://www.freebsd.org
http://www.auriance.com
http://www.osresources.com
http://exodus.jabberstudio.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top