Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

submit form once does not work

Participant ,
Sep 23, 2006 Sep 23, 2006

Copy link to clipboard

Copied

I'm using this script to disable the submit button after it's clicked once:

onclick="this.disabled=true;this.value='Processing...';submit()"

But the form stop working whenever I use it. It submits and nothing happens. When i remove that code the login form then works properly... Any suggestions. Thanks!
TOPICS
Server side applications

Views

162
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 23, 2006 Sep 23, 2006

Copy link to clipboard

Copied

have you tried submiting the form before disabling the button?

lovewebdev wrote:
> I'm using this script to disable the submit button after it's clicked once:
>
> onclick="this.disabled=true;this.value='Processing...';submit()"
>
> But the form stop working whenever I use it. It submits and nothing happens.
> When i remove that code the login form then works properly... Any suggestions.
> Thanks!
>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 23, 2006 Sep 23, 2006

Copy link to clipboard

Copied

LATEST
Yes, you mean:
onclick="submit();this.disabled=true;this.value='Processing...'"

I get the same problem. The form just submits to itself and does nothing.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines