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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames/Objects - single HTML file with mutliple screen segments

Status
Not open for further replies.

RaySmith

Programmer
Feb 16, 2000
3
US
I'm attempting to convert a ASCII text report file which contains titles, column headings on each page plus detailed lines into a single HTML file. I was hoping to use frames to provide a &quot;stationary&quot; title/heading section plus a scrollable detail line section. So far in my search I have seen no examples that don't require me to have a master file, describing the frame layout, plus subsidiary HTML files for each section. Multiple files increase the difficulty in e-mailing such a report as an attachment.<br>
Thanks for any help and ideas.<br>
Ray Smith<br>

 
Hmmmm. I do not know if this will satisfy you, but, if the<br>
&quot;stationary&quot; title/heading section is regular text only (no hypertext links)this should work. Put the non-scrolling title section along one margin in a background image (you will need a drawing program to make this). There is a tag (i cannot remember now, but someone here will) that makes the background non-scrolling. Put your scrolling body text into a table that is indented away from your title margin (or just indent the HTML using $nbsp's or the BLOCKTEXT tag). I hope this helps.
 
Its an idea but since my heading stuff is variable and will be generated automatically from text it may be combersome. I'm hoping someone might be able to describe what I have to do to say use something like inline frames (IFRAME) or declare OBJECT, both of which are mentioned in the HTML 4.01 specification. I can't see exactly how they can be used to place the FRAMESET, FRAME definitions, and the FRAME src all in one HTML document.<br>
On a related note, I tried to use TABLE, THEAD, and TBODY which are also described in the HTML 4.01 specification. They should do the trick, but upon testing with Microsoft Explorer - I get a header but no scrolling body.<br>
Any more ideas?<br>
Thanks.<br>
<br>

 
You could use a textarea tag that has a predefined text in it. The reply section in these pages are textareas and they are the way they look. You can find more information at <A HREF=" TARGET="_new"> <p>REH<br><a href=mailto:hawkdogg@crosswinds.net>hawkdogg@crosswinds.net</a><br><a href= by Linux</a><br>Learn Linux and Leave out the Windows :)
 
Another inspiration: You can use frames with one master file having all the information necessary. There is one problem with this approach, it uses JavaScript to do this. What you would need to do is define both windows with no source. In other words, it would look something like this:<br>
<i><br>
<br>
&lt;frameset {options}&gt;<br>
&lt;frame&gt;<br>
&lt;frame&gt;<br>
...<br>
&lt;/frameset&gt;<br>
<br>
</i><br>
Then you would have a script like the following:<br>
<i><br>
<br>
frame1.document.write(&quot;Your HTML source here&quot;)<br>
frame2.document.write(&quot;Same as above&quot;)<br>
...<br>
<br>
</i><br>
The script isn't too complicated. This should work for the most part. <p>REH<br><a href=mailto:hawkdogg@crosswinds.net>hawkdogg@crosswinds.net</a><br><a href= by Linux</a><br>Learn Linux and Leave out the Windows :)
 
Although ndogg has a very good way to solve this here's another:<br>
<br>
If this is to be presented on version 4 or above of the browsers, you can always use a floating layer to hold your column headings, and define the layer to stay at the top of the open window during scrolling. It takes a bit of javascript to do it, but there are many examples at places like <A HREF=" TARGET="_new"><br>
A note: the iframe tag mentioned is very useful if you are only using IE, but it also requires a separate file unless you are generating its content from javascript.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top