I'm pretty certain that most of my duplicates arise as a result of the sequence:

  1. Click "create"
  2. Switch to another tab or program.
  3. Come back to PM a few seconds or minutes later and see the "Create" button, and assume that I must have forgotten to click it, and so click again.

Basically, PM is so slow that the screen hasn't updated at all after many seconds or even minutes.

A better solution than trying to detect duplicates, might be to ensure that the browser changes quickly. I'm not suggesting bigger servers or anything like that, but simply that something get sent back to the browser immediately, before the heavy work of processing the page is undertaken.

I don't know enough about the PM server setup (or CGI or Apache or...) to know if that is possible, but playing with a local webserver, I found that if you print the html header immediately, and then do your processing and page generation, my browser (Opera), clears the tab and sets the busy icon, which would at least prevent the button being clicked again.

Maybe index.pl could use rewrite tricks to display an intermediate page prior to getting down to the heavy stuff?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"

In reply to Re: Dup Nodes/Server Glitches? by BrowserUk
in thread Dup Nodes/Server Glitches? by ww

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.