Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formatting frames

Status
Not open for further replies.

skibascott

IS-IT--Management
Mar 18, 2004
82
US
I have an intranet web page that I want to display multiple documents. Since the docs are all coming from different urls I thought that frames would be the way to go. I want the page to look like one continous document. Basically it should simply display one document in a frame and another in a frame below with a single vertical scroll to scroll through both documents. Is this possible? When trying this, the only thing I can accomplish is multiple frames, each containing its own vertical scroll. Can I show 100% of both documents, accessible via a single vertical scroll bar?
 
Not really. The only way to do it would it be to know the exact lenght of all the documents in question and then making your frames that big and making scrollbars disappear. Best choice might be iframes and using javascript to adjust iframe heights after the inside document is loaded. But I have no idea how you would go about doing that.
 
Thru html not really, thru SSI or using serverside include from a serversided language perhaps. But basically what you are describing is "Mirroring" a website you can do this with PHP/ASP/Etc but not with HTML.

Example with PHP

somefile.php
Code:
<?php
   readfile('[URL unfurl="true"]http://www.somewebsiteone.com/');[/URL]
echo "<br>";
   readfile('[URL unfurl="true"]http://www.somewebsitetwo.com/');[/URL]
?>

So when i goto
you'll see the contents of both somewebsiteone.com and somewebsitetwo.com on top of one and the other.



Karl Blessing
PHP/MySQL Developer
 
Thank you for the suggestions.
The first frame will always contain a pdf doc and the subsequent frame are always going to be html. The names of the docs to be loaded are determined by javascript when the page is loaded.
 
Ok. This probably won't work for the pdf file but it should work for the others.

You can concatenate text files using a windows DOS bat file. Bat files may also be launched from an icon. Assuming that you have a common directory that everyone has a path to you you could use a bat file like this in that directory.

Code:
VIEWALL.BAT

COPY X:\DIR1\1.HTM + X:\DIR2\2.HTM BIG.HTM
CALL "C:\PROGRAM FILES\INTERNET EXPLORER" BIG.HTM

You could specify a local drive to copy BIG.htm to.

This method would not require a frameset since all the HTML would be in a single frame.

Clive
 
Your not getting what he need CliveC... He wants all the files concatenated on the fly based on passed javascript... He needs to use something like PHP/PERL/ASP.... Or, perhaps use iframes that don't scroll...
 
That is correct jstreich. The previous page a selection is made and when a button is pushed a querystring consisting of the docs to be opened is sent to an existing page that simply converts the querystring to values and uses javascript to output the html frames and their contents.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top