Links between frames.....

J

JDorn

I am trying to build a static report viewing system using HTML. The
main page is split into 3 frames: 'Hder', 'left', and 'main'

<html>
<title>Monthly Reports</title>
<FRAMESET ROWS="15%,*" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
<FRAME NAME="HEDR" SRC="Header.html" MARGINWIDTH="3" MARGINHEIGHT="10"
SCROLLING="no">

<FRAMESET COLS="15%,*" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
<FRAME NAME="left" SRC="blank.html" MARGINWIDTH="3" MARGINHEIGHT="10"
SCROLLING="no">
<FRAME NAME="main" SRC="ReportStart.html" MARGINWIDTH="3"
MARGINHEIGHT="10">

</FRAMESET>
</FRAMESET>
</html>

Header.html has buttons to display various reports on 'Main'. When
the report contains a large number of entries, I would like to add an
alpha list to 'left' which allows the user to easily jump to the
section on 'Main'

'Left' contains:
<html>
<body>
<A href="soo.html#A" target="main">A</A><BR>
<A href="soo.html#B" target="main">B</A><BR>
<A href="soo.html#C" target="main">C</A><BR>
<A href="soo.html#D" target="main">D</A><BR>
</body>
</html>

'Main' contains:
<html>
<A name="A">
Section A data....
</A>
<br>
<A name="B">
Section B data....
</A>
<br>
<A name="C">
Section C data....
</A>
<br>
<A name="D">
Section D data....
</A>
<br>
</html>

When I click on a link on Left, all I get in Main 'This page cannot be
displayed'

I do not have any web service running, (not even IIS that I can tell)
just trying to do this as file references to keep things simple for
the small office. Do I need to have IIS or Apache running in order
for this to work?

Thanks!
Jon
 
N

Neal

I am trying to build a static report viewing system using HTML. The
main page is split into 3 frames: 'Hder', 'left', and 'main'
...
I do not have any web service running, (not even IIS that I can tell)
just trying to do this as file references to keep things simple for
the small office. Do I need to have IIS or Apache running in order
for this to work?

I could get your frames to work, but it would still be bad.

Here's a better solution - have each page include the header, the column
and the main content. You can use PHP (or SSI, but less powerful) to
include the header and column automatically. You eliminate all the bad
usability problems associated with frames and lose none of the authoring
advantages.

And unless you are using something like PHP or SSI, you don't need it
running on the machine you're designing the site on. If you go the PHP
route - and I advise you do so - you'll need it running where you test
your site. See http://www.php.net for more.
 
J

JDorn

Neal said:
I could get your frames to work, but it would still be bad.

Here's a better solution - have each page include the header, the column
and the main content. You can use PHP (or SSI, but less powerful) to
include the header and column automatically. You eliminate all the bad
usability problems associated with frames and lose none of the authoring
advantages.

And unless you are using something like PHP or SSI, you don't need it
running on the machine you're designing the site on. If you go the PHP
route - and I advise you do so - you'll need it running where you test
your site. See http://www.php.net for more.

I do not think having each page contain the frames will solve my
problem. The issue I have is getting the links from 'left' to
properly go to a position on 'main'.

I've done some searching through php samples and faq's, but have not
seen any example that does what I am looking for - user friendly
navigation among _static_ report pages. If you could point out one it
would be helpful!

I can resolve my problem by including the alpha links within the
report whenever the beginning value changes, but I feel that would be
a less desirable option.

Thanks,
Jon
 
N

Neal

I do not think having each page contain the frames will solve my
problem. The issue I have is getting the links from 'left' to
properly go to a position on 'main'.

It will only make things easier.

1) Make a mockup of a finished page.
2) Cut the header, put it in a separate file, and include it in the
original.
3) Cut the left column, same. Now you have two small files and a report
template with two includes.
4) Using PHP you can customize how the includes will appear based on the
report page that is asking.

I'm serious. Don't do this in frames unless it's impossible to do it any
other way.
I've done some searching through php samples and faq's, but have not
seen any example that does what I am looking for - user friendly
navigation among _static_ report pages. If you could point out one it
would be helpful!

I posted with a question like this in alt.php not long ago. rf gave a very
useful answer. Check that out, perhaps it will help.

Basically, you assign each report page a name, then in the included file
you echo the content you want based on that name. Shouldn't be too
difficult, unless I'm really missing what you're doing.
 
A

Alan Wood

I am trying to build a static report viewing system using HTML. The
main page is split into 3 frames: 'Hder', 'left', and 'main'

Header.html has buttons to display various reports on 'Main'. When
the report contains a large number of entries, I would like to add an
alpha list to 'left' which allows the user to easily jump to the
section on 'Main'

'Left' contains:
<html>
<body>
<A href="soo.html#A" target="main">A</A><BR>
<A href="soo.html#B" target="main">B</A><BR>
<A href="soo.html#C" target="main">C</A><BR>
<A href="soo.html#D" target="main">D</A><BR>
</body>
</html>
It is definitely possible to have links in the left frame that jump to
various points within a document in the main frame. It works with
standard HTML, and does not need a server. I have an index of
character entity references that works this way:

<http://www.alanwood.net/demos/ent4_frame.html>

If you get a message that a file cannot be displayed, then you need to
check that your frameset really does specify the files that you want
to display.
 

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,262
Messages
2,571,049
Members
48,769
Latest member
Clifft

Latest Threads

Top