Re: prevent the user to click again the same wo:hyperlink whilst page reloads?
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: OC <email@hidden>
- Date: Fri, 06 Feb 2015 08:47:46 +0100
Chuck,
On 6. 2. 2015, at 6:07, Chuck Hill <email@hidden> wrote:
> Users are more certainly a general problem! :-)
And then some! :P
> ... javascripts to catch the clicked link and disable it immediately is probably your best bet.
Hmmm, it looks like
<wo:hyperlink ... onclick="var hr=this.href;this.href='javascript:void(0)';window.location.href=hr">
might work all right. Thanks for all the help!
OC
> 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 javascripts 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