[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Re: your mail



Eric writes:
> My boss would like it that when
> the student logs in the secon, and third and fourth time etc.
> that they do not have to scroll through this long html.
> 
> instead he would like it that they are brought to the location they left off.
>
> the entire program is in perl. 
> current server is httpd on unix system
> or http 2.0 on mac server.

Probably the easiest way to do this (since they might want to skip
around, or go back to a previous problem) is just to modify the output
HTML file to include name anchors.  They enable you to skip around
within a document.

Within a single document, you would put <a name="prob20">Problem #20</a>
where you want the link to go to, and then at the top of the page in a
table of contents, put <a href="#prob20">Click here to go to #20</a>.

To link to a name anchor from a different document, merely tack the
#prob20 (or #whatever) after the name of the file or URL (e.g. <a
href="file.html#location">)

But probably the easiest way is to just separate the file into several
HTML files.  To do funky things with Perl to allow special access might
be possible, but the effort would probably be unwarranted in this case.

Don

-=-=-=-Don Blaheta-=-=-=-blahedo@quincy.edu-=-=-=-dblaheta@aol.com-=-=-=-

Baker's First Law of Federal Geometry:
        A block grant is a solid mass of money surrounded on all sides
by governors.