click-once javascript code

They have: 8 posts

Joined: Jul 2005

I want to use a click-once javascript code on uploadcrazy.com
It already have a javascript code for popup, I tried many different codes already, is it impossible to use 2 javascript codes for the same form button?

free images hosting - up to 5mb per image at imagerage.com
free files hosting - up to 100mb per file at uploadcrazy.com

SearchBliss's picture

He has: 267 posts

Joined: Feb 2005

Inside your submit buttons input tag past:
onClick="document.FormName.SubmitButtonName.disabled=true;
document.FormName.submit();"

Make sure the above code is on ONE line.

Them make sure you change "FormName" to the name of your form, and SubmitName to the name of your submit button.

What this does is disable the submit button, then it submits the form, preventing mutiple submissions.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.