Thread: generating Html pages and HREF
Results 1 to 9 of 9
09-13-2001, 05:24 PM #1
generating Html pages and HREF
I am using perl to generate multiple html pages for a tutorial site.
I am familiar with using the page links
<A HREF="#PEWP">Physics Education Web Pages</A></P>
to direct someone to another part of the page they are on, but I am wondering if there is any way to do this automatically without the user needing to click on a link?
Any Help would be appreciated.
09-13-2001, 05:33 PM #2
Hi Lori. Welcome to the forums
As to your question, when you say 'automatically', I assume you either mean the page moves on its own (not recommended, highly annoying) or that some event kicks off the change. (like choosing from drop-down box, or hovering over a keyword).
So.... would you mind giving us a few more details of what you are trying to achieve?
Note - I'm in the uk, and I'm off to bed now, so you won't get an answer until the morning unless someone else in the forum answers. G'night!
09-13-2001, 10:12 PM #3
The page I am displaying has the detailed solution to a projectile motion problem. The user will see only a small portion of the page to start. As they click the 'enter' key, new information will be loaded onto the page. I need to keep all the previous information for the user to see, so the page generated is rather long. The problem is that each time the 'enter' button is pressed, the page is regenerated and you start at the top. It will be frustrating to scroll down to the new information over and over.
I would like to generate the page with the new information visible when first loaded, and leave the option to scroll upward as the user needs to look back at previous parts of the problem.
I hope this makes sense.
09-14-2001, 02:13 PM #4
So the real problem is that you need to reload the page and then have the user at the relevant piec of information.
'generation' is the keyword, do you use a succession of longer and longer pages, or do you have information being passed along the url so that a script generates the next page?
09-14-2001, 02:36 PM #5
Information is passed so I can keep track of the user(student), so every page is generated using a perl script.
09-14-2001, 02:46 PM #6
So, how is the iformation passed on? Is it in a query string? If so, you can add the #name at the end and it should work fine.
09-14-2001, 03:45 PM #7
I am using the POST method (& the 'CONTENT_LENGTH' variable). (Although my script is set up to handle both POST & GET)
"If so, you can add the #name at the end and it should work fine. "
At the end of ... ??
09-14-2001, 04:15 PM #8
I'm having trouble talking today lol
I was wondering if you passed the query along, therefore could put a #name at the end of your url. Like at the top of this page -
09-14-2001, 04:59 PM #9
Ahhh!! That does it!
A simple solution I should have seen.