> Jeffrey Pratte wrote: >> Gang, >> >> I am occasionally getting duplicate records in my >> database. I think it is coming from people hitting >> “Submit” twice when the server is slow. How do you >> guys prevent this? >> >> I tried some JavaScript code to disable the button, which >> did gray-out the button, but then did not pass the Button >> info along to Cold Fusion. >> >> Thanks for you help, Jeff
> There's a few ways. > The simplest I can think of is to create a data structure > (a database > table would be sufficent) to keep track of your forms > where you want > to prevent multiple submissions. That's actually a pretty complicated solution -- although if you need a solution that works server-side without the aid of javascript you're reather limited to something like that... I wonder if visually impaired users "double-click" form submit buttons the same as some sighted users... I wouldn't expect it, though it could happen. In general I wouldn't expect users who have javascript-disabled (either due to visual impairment or otherwise) to produce those impatient double-submits. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/author/?id=4806 http://www.fusiontap.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201405 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

