General discussion

Locked

Display page within page

By lynnmoon ·
I need a fairly simple way to display the contents of a web page inside of another page. Ex. Main page has a decorative box that displays current news. The actual news information is contained within a plain page named easypage.htm so that my content writers can just open easypage.htm and type their news headlines and add links without actually ever touching my main page.

I have found 2 ways to do it; but neither will work in Netscape. One is the inline frame approach; but that won't workin Netscape (for me anyways):

<iframe name="I1" style="border:10px groove purple" width=393 height=411 src="TEACHERSinstitute.htm">
This is an inline frame. But you cannot see it since your browser does not support it.</iframe>

Second attempt was using this object script; but that does not work in Netscape either.

<object type="text/x-scriptlet" width="87%" height="409" name="PleaseInsertTextIn_dataBlock" data="TEACHERSinstitute.htm" scroll="yes">
</object>


Anybody got any other bright ideas as to what I can use or maybe how to force one of the above to work in Netscape. Not Netscape 6, but the older one.

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Display page within page

by Peyison In reply to Display page within page

What about doing an Include?

At the point where you want to insert your secondary file, put:

<!-- #INCLUDE FILE="easypage.htm" -->


On the main page, you could create a table to represent the box, and between <td></td> tags, put the include.

This is a server side solution that should not be dependant on the browser used.

Hope this helps.

Collapse -

Display page within page

by lynnmoon In reply to Display page within page

Poster rated this answer

Collapse -

Display page within page

by Peyison In reply to Display page within page

Trying again to post an answer...

What about using an Include? At the point where you want the text to appear, enter:

<!-- #INCLUDE FILE="easypage.htm" -->

You could create a table on the main page to represent the box, and put the includestatement between <td></td> tags.

Hope this helps.

Collapse -

Display page within page

by lynnmoon In reply to Display page within page

Poster rated this answer

Collapse -

Display page within page

by RSV In reply to Display page within page

Hi,
Only solution for you problem is using the include statement, for this you need to make you main page as .asp page, so that you can use the include statement to include the easypage.htm.

In the Main page, where you want to display the text of easypage.htm, just insert this line of code
<!--#INCLUDE FILE="easypage.htm" -->

This works in both the browsers.
Hope this is helpful to you.
Good Luck...:)

Collapse -

Display page within page

by lynnmoon In reply to Display page within page

Thanks but I have tried that too. I don't think that my server can use asp pages. When I tried to open the asp page it just tried to download the page and upen it in my webpage editor. It would not just show me a web page.

Collapse -

Display page within page

by RSV In reply to Display page within page

HI,
You have to run the .asp file on the server, i.e. PWS or IIS.
If you open the file from the physical path, then, .asp file will not work.

Hope you know how to view .asp files in the browser.

Good Luck...:)

Collapse -

Display page within page

by lynnmoon In reply to Display page within page

Poster rated this answer

Collapse -

Display page within page

by lynnmoon In reply to Display page within page

This question was closed by the author

Back to Web Development Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums