I typically use something like <input type="hidden" name="uuid" value="#createuuid()#">
And then check if the UUID exists in the records before proceeding if they've selected the no javascript option. Not nearly as elegant, but I don't think I've ever had a problem with it. -----Original Message----- From: Beattie, Barry [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 March 2003 12:25 PM To: CFAussie Mailing List Subject: [cfaussie] RE: stopping the double click effect maybe move the "isSubmitted" idea from javascript/client to session variables, set when the form is first processed yes, after 20 minutes or so they can re-submit it when the session expires but the thing that might be tricky is ... "query to check if record already exists" how do you know it may already exist? the GUID idea? same data? it's persisting the "isSubmitted" flag between requests that will be the solution. Me? I'd use a session and redirect them to the page before if it times out. cheers barry.b -----Original Message----- From: Mark Stanton [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 March 2003 12:09 PM To: CFAussie Mailing List Subject: [cfaussie] RE: stopping the double click effect Barry & Andrew: I am aware that you can do it with javascript but it doesn't really help in a situation where the client has javascript turned off. I'm really looking for something server side. Gary: Looks interesting - will give it some thought. By suggesting this are you saying I can't use cflock in this situation. cflock type="exclusive" query to check if record already exists if not do some things do some more things do lots more things write record /cflock Before I posted the last mail I had only gone over the help files in the mx update for homesite (which are a step backwards in many cases). I've just been checking livedocs and it says: "An exclusive lock single-threads access to the CFML constructs in its body. Single-threaded access implies that the body of the tag can be executed by at most one request at a time." I guess what I need to know is does this just mean access to variables (as specified in the scope attribute) in the body of the tag or does it mean anything (queries, etc..) in the tag body? Cheers Mark ______________ Mark Stanton Web Production Gruden Pty Ltd Tel: 9956 6388 Mob: 0410 458 201 Fax: 9956 8433 www.gruden.com --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
