Perl Script creates html doc - want to jump to anchor

T

TWW

Greetings,
I am writing a Perl script that generates html documents on the fly.
In some instances the document is rather long, and the desire exists
to have the script result in the browser jumping to an anchor within
the document.

A file for the generated HTML document is not created. Is this a
problem with my issue above? Are there issues with not creating a
file that may come and haunt me in the future.

One suggestion was to append some Javascript code that gets executed
when the document is loaded (the Javascript references the anchor).

Perhaps this is in the wrong group, but I figured a Perl guru could
address this.

Thanks for any help you can offer,
Tom
 
A

A. Sinan Unur

(e-mail address removed) (TWW) wrote in @posting.google.com:
Greetings,
I am writing a Perl script that generates html documents on the fly.
In some instances the document is rather long, and the desire exists
to have the script result in the browser jumping to an anchor within
the document.

A file for the generated HTML document is not created. Is this a
problem with my issue above? Are there issues with not creating a
file that may come and haunt me in the future.

If a file were generated, you could then redirect the browser to the
specified anchor in the generated document.
One suggestion was to append some Javascript code that gets executed
when the document is loaded (the Javascript references the anchor).

You use the onload event handler for the document for this I guess.
Perhaps this is in the wrong group, but I figured a Perl guru could
address this.

You are probably better off asking this question in a CGI group (e.g
comp.infosystems.www.authoring.cgi) as the solution does not depend on
Perl.
 

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
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top