*sneaks back into the conversation*

Sooo...uhhh...which part of that code disables the submit button.

Is there any means of preventing form fields from being resubmitted if
the user keeps clicking the Refresh button with the Qforms API?
That's about the last common error I think I encounter when designing
forms.

The ole User-clicks-Refresh for some reason and resubmits all their form
info.

-Gel


-----Original Message-----
From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] 

oForm = new qForm("frmExample"); oForm.required("name,contactVia");
oForm.email.createDependencyTo("contactVia", "email");
oForm.email.validateEmail();
oForm.address1.createDependencyTo("contactVia", "postal");
oForm.city.createDependencyTo("contactVia", "postal");
oForm.state.createDependencyTo("contactVia", "postal");
oForm.zipCode.createDependencyTo("contactVia", "postal");
oForm.contactVia.enforceDependency();

With the above 9 lines of JavaScript, I just wrote a form that does the
following:

- Prevents duplicate submissions (i.e. the submit button becomes
disabled
  after the browser sends the request to the server.)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to