Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have a series of perl scripts operating a payroll timesheet site with each script writing HTML. In the MS IE 5.5 browser the URL location remains as the initial site and is not updated even when doing a <a href=".../index.html... tag. It goes to the page but the URL stays with the original.

a browser REFRESH sends back to what is in URL location

How can I get perl to update the URL location

Edit: Petruchio Sat Sep 1 09:20:45 UTC 2001 - Formatting corrections.

Replies are listed 'Best First'.
Re: Can`t Update URL location
by dvergin (Monsignor) on Sep 01, 2001 at 18:36 UTC
    dvergin thought he understood the question. ...until he read it a second time.

    Okay. A couple crucial things are not clear from your question. Let's see if we can get a better picture of what you are describing.

    You say, "with each script writing HTML". Do you mean each script is writing out an .html file (which is later accessed over the web using a browser) or that the scripts are spitting out html code directly to the browser?

    Whichever is the case, understand that once the page is being displayed in your browser, it does not matter much how it originated. It is just a bunch of html text being displayed according to the rules of html. Which brings us to the second unclear thing.

    It is unclear in part because what you seem to be describing seems unlikely (but see "Ahah!" below). So I begin to wonder whether you have left out something ...or if I have missed something. Let me describe what you seem to be saying and see if we are on the same page.

    • You are in your browser looking at a page generated by one of your scripts. On that page is a link.
    • You have verified (by examining the page source in your browser) that the link properly points to a different page.
    • You click on the link. This takes you to a new page.
    • But when you look at the URL in the little text field at the top of your browser, it still points to the previous page.
    • If you then click on "Refresh" you are taken back to the previous page.

    Yes? No?

    Ahah! Does your page contain frames? If it does, and if the links are loading new material into the same frames, you are seeing the url of the original page-with-frames and not the url of new sub-pages being loaded into the frames on your page. This is normal. It is also normal to have the original form of the page load when you hit "Refresh". That's just the way frames work.

    As you can see, even though you are producing your pages using Perl scripts, at this point this is moving in the direction of becoming an html question. Unless the clues point back to the scripts themselves, you will need to smile very nice and keep it short to get further help before we gently but firmly change the subject to something more Perl-related.