I would love to see this change to PerlMonks...

After voting, instead of just loading the same page and keeping it where if you refresh it will give that "data repost" message, how many would rather it just print redirect(-uri=>"index.cgi?node_id=" . $node_id_or_whatever_it_is); That way if the user hits refresh it just loads the page, not attempting to repost the data.

How about a little discussion on that?
Is it possible to see that some day?
What are YOUR thoughts on that?
Do you see problems that would create?

thx,
Richard

Replies are listed 'Best First'.
Re: PerlMonks and the vote system
by PodMaster (Abbot) on Aug 11, 2004 at 07:55 UTC
    While I'm not concerned at all with user's hitting refresh, I do think certain opcodes like vote should do precisely this. I don't see any problems with this, other than I forget where to make the appropriate patch :|

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: PerlMonks and the vote system
by ysth (Canon) on Aug 11, 2004 at 07:32 UTC
    A lot of the need for this goes away now that there's that little node_id link under the title on most nodes. Use that instead of refresh.
      Oh, that's intuitive.
Re: PerlMonks and the vote system
by mortis (Pilgrim) on Aug 12, 2004 at 01:55 UTC
    I make this a habit when developing web applications to always return a redirect from form posts. It provides for a better user experience - users will often leave a result page (like an order summary) and then use the dreaded back button to return to it, sometimes saying yes to the 'resubmit form data' question.

    Responding with a redirect to the initial POST avoids this (in most cases), and the aforementioned multiple submission issue. You don't even have to resort to javascript to prevent them from using the back button :)

    It's just a better experience for the user.

    Kyle

Re: PerlMonks and the vote system
by eric256 (Parson) on Aug 11, 2004 at 20:10 UTC

    I would just like to second that. I like the id link. Once you know its there its nice, but it realy is more of a hack than a fix.


    ___________
    Eric Hodges
Re: PerlMonks and the vote system
by greenFox (Vicar) on Aug 12, 2004 at 00:46 UTC

    FWIW I have developed a habit of leaning on talk to refresh a page here. Yes I know this is just another work around (JAWA?) and not a solution :)

    --
    Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho

      Yes. The 'talk' button is a very good (one might say "standard") way of refreshing the current page.

      If you read all the site docs and faqs, you'll see this point made in off-hand ways (for example, in the chatterbox faq, and in this previous discussion of the same topic), but the fact remains that it could be more prominently documented. The SiteDocClan will see to it.