House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Talk (CF-Talk)

Prevent Refresh

Author:
Matt Robertson
06/10/2003 05:33 PM

>Well, I was commenting on having passed a variable from a form >and simply determining whether to perform the action or >display the message on the basis of just that one form field, >without any other context such as the db, etc. ah... I missed that boat. >Gotta love fire-and-forget solutions. :) Yup.  One thing it does, though, is leave cvars littered in the cvar db, which is a minor annoyance to me when I see a regular user with 10 vars in there... although it affects very little and of course they get flushed out eventually.   I'm writing a thing now to expire old ones prior to assigning a new one since I keep date stamp data in there. Good thing I have nothing important to do than tinker with running code :D ------------------------------------------- Matt Robertson,     matt@mysecretbase.com MSB Designs, Inc. http://mysecretbase.com ------------------------------------------- Reply-To: cf-talk@houseoffusion.com Date: Tue, 10 Jun 2003 16:02:50 -0500 >> Isaac wrote: >>>You could do that -- you'd have to use javascript to >>>submit >>>the form and set the value of the field after the form is >>>submitted. > >> Nope.  I use something very close to the code below.  The >> user is assigned a form ID on arrival.  This ID is checked >> for using both the persistent var you see here and later >> on when its time to hit the db and do an insert.  Kind of >> a double check in case somehow the cvar-based test doesn't >> work.  I know the 'UID' isn't perfect.  A UUID with the >> dashes stripped out is probably smarter. > > >> Honestly I forget exactly.  This has just worked so >> well over the last couple years that I pretty much >> forgot about it. > >Gotta love fire-and-forget solutions. :) > >s. isaac dealey                972-490-6624 > >new epoch                      http://www.turnkey.to > >lead architect, tapestry cms   http://products.turnkey.to > >tapestry api is opensource     http://www.turnkey.to/tapi > >certified advanced coldfusion 5 developer >http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 > > >


Search cf-talk

June 18, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Designer, Developer and mobile workflow conference