Re: Problems when user hit back

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34480
interpreted = N
texte = 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.John PeacockRodolfo de la Garza wrote: > > Hi there, > > I have a link to add a product to the Shoppingcart template like this: > HREF=ShoppingCart.tmpl$add?db=products.db&sku=[url][sku][/url]&cart=[cart] > >Add > > It goes to the Shoppingcart.tmpl from there I go to the invoice.tmpl. > When the user hit the back button from the invoice.tmpl to go back to the > Shoppingcart.tmpl it shows the last product twice, and each time they go to > the invoice.tmpl and go back it adds a row with the last product. > > Any idea how to fix this problem? > > Thanks. > -Rodolfo > > ------------------------------------------------------------- > 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/------------------------------------------------------------- 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)
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.John PeacockRodolfo de la Garza wrote: > > Hi there, > > I have a link to add a product to the Shoppingcart template like this: > HREF=ShoppingCart.tmpl$add?db=products.db&sku=[url][sku][/url]&cart=[cart] > >Add > > It goes to the Shoppingcart.tmpl from there I go to the invoice.tmpl. > When the user hit the back button from the invoice.tmpl to go back to the > Shoppingcart.tmpl it shows the last product twice, and each time they go to > the invoice.tmpl and go back it adds a row with the last product. > > Any idea how to fix this problem? > > Thanks. > -Rodolfo > > ------------------------------------------------------------- > 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/------------------------------------------------------------- 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/ John Peacock

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:

Removing and Reinstalling Typhoon (2000) Quantity/price formula (1998) did I miss anything (1997) list cookies and list http headers (1997) thisurl & arguments (2000) Accentued characters in emails (2000) Initiating NewCart (1997) WebCat2: Items xx to xx shown, etc. (1997) BinaryBody for ReturnRaw (2003) Mac 2.1b4 unknown error: BadSuffix (1997) SKU lookup (1997) Adding Shipping Costs based on percent of subtotal (1997) default value from Lookup (was Grant, please help me) (1997) WebDNA & Suse Linux (2004) Inventory Control (2000) WebCat B13 Mac CGI -- Frames question (1997) weird G3 happenings (1998) WebCatalog2 Feature Feedback (1996) [WebDNA] Feature requests - date format (2009) 2 things: CartSweep and Manual (2003)