Re: Problems when user hit back

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34538
interpreted = N
texte = Thanks for your help guys. -RodolfoEl 7/11/00 1:56 PM, Sam Lewis sam@samLewis.com escribió:>> Could you explain this a bit, Sam? >> > > Sure. The problem was that when someone hits Reload on the shopping > cart page or Back from the invoice page it can affect the shopping > cart by adding multiple instances of a single sku. So since I am > using the rn=[random] trick to solve browser caching issues anyway I > also use it to solve this problem. > >>> [showif [action]=Add] >>> >>> [text]oldRandom=[orderfile cart=[cart]][header20][/orderfile][/text] > > When someone adds an item to my shopping cart page I check to see if > this request is coming from their cache by comparing the header20 > value to the rn value that is passed to the page. > >>> [hideif [oldRandom]=[rn]] > > So if the oldRandom=rn then this request is not unique and is > probably caused by someone hitting Reload or Back from the invoice > page. > >>> [addlineitem >>> cart=[cart]&db=^Editions.db&sku=[SKU]]quantity=[qty][/addlineitem] >>> [SetHeader cart=[cart]&db=^editions.db]Header20=[rn][/SetHeader] > > If it is unique and rn does not equal oldRandom then I go ahead and > add the line item to the cart and I set header20 to the current rn > value > >>> [/hideif] >>> [/showif] > > Does that make better sense? ------------------------------------------------------------- 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)
Thanks for your help guys. -RodolfoEl 7/11/00 1:56 PM, Sam Lewis sam@samLewis.com escribió:>> Could you explain this a bit, Sam? >> > > Sure. The problem was that when someone hits Reload on the shopping > cart page or Back from the invoice page it can affect the shopping > cart by adding multiple instances of a single sku. So since I am > using the rn=[random] trick to solve browser caching issues anyway I > also use it to solve this problem. > >>> [showif [action]=Add] >>> >>> [text]oldRandom=[orderfile cart=[cart]][header20][/orderfile][/text] > > When someone adds an item to my shopping cart page I check to see if > this request is coming from their cache by comparing the header20 > value to the rn value that is passed to the page. > >>> [hideif [oldRandom]=[rn]] > > So if the oldRandom=rn then this request is not unique and is > probably caused by someone hitting Reload or Back from the invoice > page. > >>> [addlineitem >>> cart=[cart]&db=^Editions.db&sku=[SKU]]quantity=[qty][/addlineitem] >>> [SetHeader cart=[cart]&db=^editions.db]Header20=[rn][/SetHeader] > > If it is unique and rn does not equal oldRandom then I go ahead and > add the line item to the cart and I set header20 to the current rn > value > >>> [/hideif] >>> [/showif] > > Does that make better sense? ------------------------------------------------------------- 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:

[WebDNA] mydatabase.db-oRiGiNaL- (2016) Webcat2, WebCommerce, Mod 10 etc. (1997) WebCat for mass emailings (1997) Part Html part WebDNA (1997) OLD ORDERS (1998) [OT] Change permissions via FTP? (2002) PowerKey and PageSentry not playing nice (2000) Orderfile Info is Dissappearing (1998) [LOOKUP] (1997) Is Typhoon 4 or Typhoon Pro a product? (2000) Odd linefeed problem (2003) Secure Server (1997) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997) re:check boxes (1997) WebCat2.0 [format thousands .0f] no go (1997) item sorting (1997) A sendmail warning (2005) Re:PCS Customer submissions ? (1997) WebCat2 Append problem (B14Macacgi) (1997) flushdatabases (1997)