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:
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:
Problems with [Applescript] (1997)
Database of Tax Rates? (1997)
Input appreciated (2000)
Parameter vs. Operator (1998)
Apache 2.2 (2007)
A Global Variable (1997)
updating with ProductEditor (1998)
Search returns all, not 20 (1997)
Doing VALIDCARD right? (1998)
Bugs? What Bugs? was:Spawning Holdup? (2000)
[WebDNA] inputed text getting scrambled up in DB (2012)
[WebDNA] search by range of dates (2009)
Dummy Credit Card Number for debug? (1997)
ErrorMessages.db suggestion (1997)
RE: Languages (1997)
Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (2003)
PCS Frames (1997)
[Announce]: Web server security and password protection (1997)
[math] show=F exists? (1997)
Protect (1997)