Re: Problems when user hit back

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34500
interpreted = N
texte = > > 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. Here is the code I use for this technique:[showif [action]=Add][text]oldRandom=[orderfile cart=[cart]][header20][/orderfile][/text][hideif [oldRandom]=[rn]] [addlineitem cart=[cart]&db=^Editions.db&sku=[SKU]]quantity=[qty][/addlineitem] [SetHeader cart=[cart]&db=^editions.db]Header20=[rn][/SetHeader] [/hideif][/showif] Hope that helps,-- Sam LewisSamLewis.com Tel: 626-852-0956 Fax: 916-404-5698------------------------------------------------------------- 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)
> > 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. Here is the code I use for this technique:[showif [action]=Add][text]oldRandom=[orderfile cart=[cart]][header20][/orderfile][/text][hideif [oldRandom]=[rn]] [addlineitem cart=[cart]&db=^Editions.db&sku=[SKU]]quantity=[qty][/addlineitem] [SetHeader cart=[cart]&db=^editions.db]Header20=[rn][/SetHeader] [/hideif][/showif] Hope that helps,-- Sam LewisSamLewis.com Tel: 626-852-0956 Fax: 916-404-5698------------------------------------------------------------- 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/ Sam Lewis

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:

Error:Too many nested [xxx] contexts (1997) Non WebDNA forms and timed popups... (2002) Thanks Grant (1997) WebCat2b12plugin - [search] is broken ... not! (1997) searchable list archive (1997) textarea input truncated at 255 chars (1999) WebCatalog NT beta 18 problem (1997) setting the price of goods after its added to the cart (2000) Upgrade Price Problems (2000) Date Sort question (2004) Re:no [search] with NT (1997) Sending an email to all )or some) email addresses int he database (1999) Major Security Hole IIS NT (1998) Generating Report Totals (1997) Using Currencies other than Dollars (1997) Nutscrape Doesn't Render Right (2002) [WebDNA] how to make webroot the start of path (2017) WebTen and WebCat (1997) reverse of math value... (2004) WCS Newbie question (1997)