Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8565851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:31:24+00:00 2026-06-11T17:31:24+00:00

Using UiApp to collect data from a form, but I have users double clicking

  • 0

Using UiApp to collect data from a form, but I have users double clicking the submit button. This runs doPost twice. Granted, they have to click mighty fast to get it to actually post twice, but it happens.

My questions is: has anyone had experience in disabling the submit button, say with an onMouseUp? Is there a better way to do this? I’ve been told to be wary of adding multiple onClick handlers to buttons, as it can be unstable. Any stable solutions to this?

I have to use a submit button as there is a file upload in the form.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:31:26+00:00Added an answer on June 11, 2026 at 5:31 pm

    I’ve faced this problem and ever since Google introduced ClientHandlers, there is a way out.
    Just add a client handler to your submit button disabling it (and remember to enable it when you are done with the server handler function or doPost)

    var plswait = app.createClientHandler().forEventSource().setEnabled(false).setText('Please wait...'); 
    var btnSubmit = app.createSubmit().addMouseDownHandler(plswait); 
    

    is my favourite.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using NSDateComponents I know how to get the day component, but this gives me
Using MVC2 I have an AJAX form which is posting to a bound model.
Using Java,I have to fetch multiple sets of values from an XML file to
I am trying to pull data from our Oracle datamart into R using RODBC.
I have a library containing a webApp (using UiApp with doGet) intended to work
I have created a dialog box in an UiApp, using, app.createDialogBox(); I need to
Using Rails 3, but I guess doesn't matter. I put this in the template
Using CRM 4, I have an entity form that contains a tab with an
I have an interface that calls a script for spreadsheet creation using data taken
Using codeigniter 2.1.2, I have a form view loaded through a controller that takes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.