Re: Problems when user hit back

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34522
interpreted = N
texte = Do you have an example of the code?-RodolfoEl 7/11/00 11:30 AM, Sam Lewis sam@samLewis.com escribió:>> The only way to safely deal with it is to design your site so that the >> user never wants to use the Back button. ;~( The issue is that when the >> user goes back, the browser resubmits the command to add the last line >> item. >> >> If you can guarantee that there will never be more than one line with >> a given SKU, you can write a small loop to check for duplicates and >> forbid the subsequent adds. This really only works well if you are >> using contexts to add to the cart, instead of commands. > > > I deal with it by adding a rn=[random] to all of my links. On the > shopping cart page I set a header to the rn value the first time > through. Then on subsequent hits to that page I check to see if rn > equals my header value if so then the user either hit reload or back > so I don't add the item to the cart again. For every hit to the cart > page that has a unique rn value I set my header to that value to > check on the next hit. ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Problems when user hit back (Rodolfo de la Garza 2000)
  2. Re: Problems when user hit back (Rodolfo de la Garza 2000)
  3. Re: Problems when user hit back (Christopher Mackay 2000)
  4. Re: Problems when user hit back (Christopher Mackay 2000)
  5. Re: Problems when user hit back (Sam Lewis 2000)
  6. Re: Problems when user hit back (John Peacock 2000)
  7. Re: Problems when user hit back (Sam Lewis 2000)
  8. Problems when user hit back (Rodolfo de la Garza 2000)
  9. Re: Problems when user hit back (Sam Lewis 2000)
  10. Re: Problems when user hit back (John Peacock 2000)
Do you have an example of the code?-RodolfoEl 7/11/00 11:30 AM, Sam Lewis sam@samLewis.com escribió:>> The only way to safely deal with it is to design your site so that the >> user never wants to use the Back button. ;~( The issue is that when the >> user goes back, the browser resubmits the command to add the last line >> item. >> >> If you can guarantee that there will never be more than one line with >> a given SKU, you can write a small loop to check for duplicates and >> forbid the subsequent adds. This really only works well if you are >> using contexts to add to the cart, instead of commands. > > > I deal with it by adding a rn=[random] to all of my links. On the > shopping cart page I set a header to the rn value the first time > through. Then on subsequent hits to that page I check to see if rn > equals my header value if so then the user either hit reload or back > so I don't add the item to the cart again. For every hit to the cart > page that has a unique rn value I set my header to that value to > check on the next hit. ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Rodolfo de la Garza

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Templates on Unix & CGI on Mac? (1997) Any WebCatalog Server providers in Seattle? (1998) includes and cart numbers (1997) Fwd: Problem with order (1998) deadlock (2000) Still More on EudoraPro Email (1998) Re:2nd WebCatalog2 Feature Request (1996) Help! WebMerchant store suddenly won't process orders... (2001) videos.. yak..yak (1998) Applescript, WebDNA, and PDF (1997) [OT] Change permissions via FTP? (2002) WebCat2b13MacPlugin - nested [xxx] contexts (1997) RE: [redirect] w/o showing args? (1999) [replace] has protection feature like [delete]? (2000) version 2 for NT (1997) OK, here goes... (1997) (1997) international time (1997) Code shows all, but should not (2003) Large databases in WebCat (1997)