Forum Moderators: open

Message Too Old, No Replies

embedding an html file inside another html file

to specify content by linking to another url

         

grum

8:13 pm on May 9, 2004 (gmt 0)

10+ Year Member



not sure how to explain this...here goes

is there a way (aside from using frames) to show the contents of a webpage inside aother web page.

For example, having a menu bar at the side where the user can click on different documents and then the documents load into another part of the page (for example a table cell or something)

or is the only way to do this with some back end technology?

thanks

PatrickDeese

8:22 pm on May 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would guess the only ways to accomplish it would be via Frames, Inline frames, or some javascript magic and/or hidden CSS content.

grum

8:37 pm on May 9, 2004 (gmt 0)

10+ Year Member



Ah...I have just dicovered IFRAMEs. They seem to do the thing I want, but this leads me to another question.

Can you target an IFRAME in a link?

BlobFisk

2:58 pm on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, grum!

There is an attrbute called target that allows you to target particular frames/iFrames. For example:


<iFrame name="myFrame" src="path/to/file.html">

You can have a link on the parent page that opens the (linked) page in the frame by:


<a href="path/to/file.html" target="myFrame" title="Link to File">...</a>

HTH