Re: Browser Reloads and AddlineItem
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14555
interpreted = N
texte = >>My page contains [AddLineItem]>>When I click on Reload button in Navigator 4.03, the item is added a>>second time to the cart.>>I know how I could use a [showif] to prevent the [AddLineItem]>>How do I identify when the Reload button has been pressed in Navigator?>The only way to do that, that I can think of, is to use Javascript.>You might be able to do some clever work with the referrer tag>however. If the [referrer] is the same as [thisURL] then most likely>the reload button has been pushed (for a lot, but not all, sites).You can do this within the existing capabilities of the WebDNAlanguage. Just set a variable value the first time the page isaccessed, and prevent the line item stuff from being added (with a[hideif] context) when that variable value has been set previously.Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/.
Associated Messages, from the most recent to the oldest:
>>My page contains
[addlineitem]>>When I click on Reload button in Navigator 4.03, the item is added a>>second time to the cart.>>I know how I could use a
[showif] to prevent the
[addlineitem]>>How do I identify when the Reload button has been pressed in Navigator?>The only way to do that, that I can think of, is to use Javascript.>You might be able to do some clever work with the referrer tag>however. If the
[referrer] is the same as
[thisurl] then most likely>the reload button has been pushed (for a lot, but not all, sites).You can do this within the existing capabilities of the WebDNAlanguage. Just set a variable value the first time the page isaccessed, and prevent the line item stuff from being added (with a
[hideif] context) when that variable value has been set previously.Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/.
Kenneth Grome
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:
Browser Info.txt (1997)
problems with WebCat-Plugin ()
Context and commands (1998)
ShipCost Problems (1998)
Orderfile context problem (1998)
August 15th WebDNA Chat Transcript (2002)
Funny Submissions From a Form Page (1999)
WebCat2b12 CGI Mac - [shownext] problem (1997)
OK, here goes... (1997)
all records returned. (1997)
So what ya working on? (or have you completed?) (2004)
First postarg not taking in $Commands (1997)
[include file=filename.inc&strip=t] (2002)
I think WebDNA-Talk died ... :( (1997)
searching problem (1998)
Pithy questions on webcommerce & siteedit (1997)
Search Combining Problem (2004)
Multiple Ad databases? (1997)
Explorer 3.0/ Access Denied! (1997)
Creating comums (1998)