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

submit form once does not work

Participant ,
Sep 23, 2006 Sep 23, 2006
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
185
Translate
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
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!
>
Translate
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
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.

Translate
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