× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks Nathan,

I searched the archives for 'doubleclick' and 'double click' but got no
results.

I thought i was already doing something similar to what you suggested but
thought it wasn't working.  i hadn't looked at the application for a while,
and I didn't used to have a problem with it.

Just recently, the number of users more than quadrupled, and my guess is
they aren't doing as good a job of field training them on using a web
browser properly, thus the problem started cropping up.

I looked again, and as it turns out, I was using a counter instead of a
boolean, allowing 3 clicks instead of 1 (to keep someone from clicking a
hundred times in a row, but allowing them to click again if they accidently
hit the 'stop' button, at least a couple times, anyway.  (see below)  not
very well thought out, i admit.

var submitted = 0;

function begCycle() {
if (submitted < 3) {
  submitted = submitted + 1;
  document.m01.QZACTI.value = "begCyc";
  document.m01.action="<!--*QZCGIP-->wwmenu01";
  document.m01.submit();
  }
}

I changed the 3 to a 1 for the critical update form submissions.  this
should take care of the problem.   all links redirect to a different page,
or re-draws this page, so it should work, unless they hit the stop button.
in that case, they'll just have to hit refress (which would re-draw the
page anyway).

thanks for the brain jog,

Rick


-------original message----------
> From: "Richard B Baird" <rbaird@esourceconsulting.com>
> I am soliciting suggestions for preventing a user from doubleclicking
> an RPG-CGI link in a web application.

Richard,

It seems like this question has been asked before on this list.  You might
search the archives.  But one solution is to use the onClick event
associated with the hyperlink to call a JavaScript routine which only
submits the form on the condition that it hasn't been submitted before.  In
your script, just define a global boolean variable to indicate whether the
form was submitted previously, or not.

Nathan M. Andelin
www.relational-data.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.