This is really more of a question about how PM (or Everything) operates, so if you think it would be more appropriate in SOPW, feel free to move it there.
I first noticed this in the context of voting on nodes, but as far as I've looked, it's true of all PM pages. All the forms use the POST method and their action is /index.pl. Thus, after you submit the form (such as to record your votes) and the new page loads, the URL in your browser no longer reflects the node name or node_id which is being displayed. Among other things, hitting refresh won't work.
My question is, why does it work that way? It seems like when Everything is generating the page, it could modify the action in forms as it does for anchor links in the page. That is, forms would end up looking like this: <form method="POST" action="/index.pl?node_id=...&lastnode_id=..."Then after you vote (or whatever), browser refresh would still work. Since the form uses POST, the code that parses the form data could just ignore the GET "parameters".
Some reasonable answer formats I can think of:
TIA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Form actions and browser refresh on PM
by chromatic (Archbishop) on Oct 02, 2001 at 01:31 UTC | |
|
(tye)Re: Form actions and browser refresh on PM
by tye (Sage) on Oct 02, 2001 at 01:45 UTC | |
by shotgunefx (Parson) on Oct 02, 2001 at 15:33 UTC | |
by tye (Sage) on Oct 04, 2001 at 19:08 UTC | |
by shotgunefx (Parson) on Oct 05, 2001 at 12:39 UTC |