Re: Help with Repost Data msg from form
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12989
interpreted = N
texte = >>Do you mean that this message comes up when the user does nothing except>>click the Submit button?>Yes. when the message comes up if the user selects 'Cancel' then all is OK,>however, if the user selects ' OK' to repost then the form is processed>twice. For example, this results in two items added to the cart. This error>appears to occur every second time if you go back and resubmit.This is not an error. In fact, it is an error *not* to allow the second submission. There are plenty of sites that want to add the same product to the cart on 2 different occasions (1 pair of red tennis shoes, and a second pair of green) as 2 different lineitems. The browsers that do so much caching that they don't actually send the second request are in error. When you are dealing with dynamic pages, as WebCatalog does, you must let WebCatalog see all of the form postings so *it* can decide if there's an error or not.To solve your situation, where you don't want a second item added to the cart, you can put WebDNA into the cart page that examines contents of the cart and disallows the second $Add of an identical product. The choice should be up to you, the WebMaster, and not the browser.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>>Do you mean that this message comes up when the user does nothing except>>click the Submit button?>Yes. when the message comes up if the user selects 'Cancel' then all is OK,>however, if the user selects ' OK' to repost then the form is processed>twice. For example, this results in two items added to the cart. This error>appears to occur every second time if you go back and resubmit.This is not an error. In fact, it is an error *not* to allow the second submission. There are plenty of sites that want to add the same product to the cart on 2 different occasions (1 pair of red tennis shoes, and a second pair of green) as 2 different lineitems. The browsers that do so much caching that they don't actually send the second request are in error. When you are dealing with dynamic pages, as WebCatalog does, you must let WebCatalog see all of the form postings so *it* can decide if there's an error or not.To solve your situation, where you don't want a second item added to the cart, you can put WebDNA into the cart page that examines contents of the cart and disallows the second $Add of an identical product. The choice should be up to you, the WebMaster, and not the browser.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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:
ShoppingCart Woes (1998)
Error: Too many nested [xxx] contexts (1997)
Unique SKU Numbers (2000)
emailer (1997)
PSC recommends what date format yr 2000??? (1997)
[WebDNA] [append] does not add the newline char at the end of (2009)
[WebDNA] Converting minutes to hours (2008)
Stopping NT WebCat service (1998)
Fun with Dates - revisited (1997)
wrong input values? (1997)
WebCatalog security on NT (2000)
I guess I have a problem with commitment (2003)
PIXO (1997)
problem: mail changed (1997)
More than one db with the same namn (was: WC2f3) (1997)
Web DNA... (2007)
PCS Emailer's role ? (1997)
[listwords] & delimiters (2004)
Can he do that? (1998)
OT - royalty free images (2002)