• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: prevent the user to click again the same wo:hyperlink whilst page reloads?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prevent the user to click again the same wo:hyperlink whilst page reloads?


  • Subject: Re: prevent the user to click again the same wo:hyperlink whilst page reloads?
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 06 Feb 2015 05:07:05 +0000
  • Thread-topic: prevent the user to click again the same wo:hyperlink whilst page reloads?

Users are more certainly a general problem!  :-)

I am not aware of anything in WO or Wonder to prevent this.  Usually processing is quick and re-clicking is of little consequence or easy to code around..  Just wait until you hit this with the AjaxModalDialog when they click on something in the dialog after clicking a close link and before the dialog closes.  Lots and lots of fun to be had with this one.

Another fun aspect is that unless this is Ajax, only the result of the last click will be used by the browser.  So you can’t just short circuit clicks 2..N.   _javascript_s to catch the clicked link and disable it immediately is probably your best bet.

Enjoy!

Chuck


On 2015-02-05, 8:47 PM, "OC" wrote:

Hello there again,

I might be wrong, but from analysis of my last log it seems at least one of the users got the stupid idea that clicking again on a link whose response was not immediate might speed things up.

I frankly admit I never ever tried that -- after all, who would even think of clicking links whilst the page is being reloaded?!? To me, it does not make any sense. Anyway I've just tested, and found instead of doing nothing (which would seem the reasonable thing to do) it simply creates and runs a new R/R loop each time the link gets clicked, regardless the page is already being reloaded for tens of seconds. Wow.

Thus the aforementioned user started another R/R loop. And another. And another. And so forth. The more concurrent threads did the same thing, the slower they got. Oops.

I guess I could rig some _javascript_s to catch the clicked link and disable it immeditely or something like that; but it would be some legwork to do properly. I wonder, this being self-evidently a general problem, whether there might already be a solution in WOnder?

Thanks,
OC


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: prevent the user to click again the same wo:hyperlink whilst page reloads?
      • From: OC <email@hidden>
    • Re: prevent the user to click again the same wo:hyperlink whilst page reloads?
      • From: Matthew Ness <email@hidden>
References: 
 >prevent the user to click again the same wo:hyperlink whilst page reloads? (From: OC <email@hidden>)

  • Prev by Date: prevent the user to click again the same wo:hyperlink whilst page reloads?
  • Next by Date: Re: prevent the user to click again the same wo:hyperlink whilst page reloads?
  • Previous by thread: prevent the user to click again the same wo:hyperlink whilst page reloads?
  • Next by thread: Re: prevent the user to click again the same wo:hyperlink whilst page reloads?
  • Index(es):
    • Date
    • Thread