Reload adding to cart
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 39174
interpreted = N
texte = Hello again,On my found_items (or results) page I also have myshopping cart. When someone goes to add an item fromthe found items it refreshes the results page and adds theitem to the cart. My problem is that all the variable values arestill in place (and need to be I think) so when a reload is doneall the previous actions are done once again.This means that if someone adds something to the cart, thendoes a reload/refresh, then that item is added once more. (and so on)How do people get around this? I tried a formed based link instead butit did not work... same thing.Some how I need to delete the appropriate (shop=add) variable after the page is loaded. so a reloaddoesn't show that code.any ideas?this is what is in my URL:xxx.xxx.xxx.xxx.results.html?cart=321161611413097&shop=add&theSKU=10-M&action=cat&keywords=7&y=3714This is the code that adds an item: [showif [shop]=add] [addlineitem cart=[cart]&db=admin/products.db&sku=[url][theSKU][/url]][/addlineitem][/showif]Thanks,signed, confused.-- Donovan D. BrookeSystems Administrator/Assc. Art DirectorEpsen Hillmer GraphicsI know I'm making progress when I look at the questions I haveasked in the past and think to myself... how stupid was that-------------------------------------------------------------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:
Hello again,On my found_items (or results) page I also have myshopping cart. When someone goes to add an item fromthe found items it refreshes the results page and adds theitem to the cart. My problem is that all the variable values arestill in place (and need to be I think) so when a reload is doneall the previous actions are done once again.This means that if someone adds something to the cart, thendoes a reload/refresh, then that item is added once more. (and so on)How do people get around this? I tried a formed based link instead butit did not work... same thing.Some how I need to delete the appropriate (shop=add) variable after the page is loaded. so a reloaddoesn't show that code.any ideas?this is what is in my URL:xxx.xxx.xxx.xxx.results.html?cart=321161611413097&shop=add&theSKU=10-M&action=cat&keywords=7&y=3714This is the code that adds an item: [showif [shop]=add] [addlineitem cart=[cart]&db=admin/products.db&sku=[url][theSKU][/url]][/addlineitem][/showif]Thanks,signed, confused.-- Donovan D. BrookeSystems Administrator/Assc. Art DirectorEpsen Hillmer GraphicsI know I'm making progress when I look at the questions I haveasked in the past and think to myself... how stupid was that-------------------------------------------------------------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/
Donovan Brooke
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:
Emailer tracking (1997)
WebCatalog2 Feature Feedback (1996)
Re:trouble (1997)
Reminder for beta testers (2000)
Migrating to NT (1997)
random .inc files pulled and placed (2002)
osascript help needed (2006)
simple answer? [hideif] (1997)
[WebDNA] ImageMagick code (2013)
HTML Mail & Line breaks... (2004)
[append] and SSL (1997)
WebCatalog for Postcards ? (1997)
japanese characters (1997)
NEW INFO: I'm stuck: Can't open order file.Ignoring[OrderFile] context (2000)
Closing Databases (1998)
simple forum/bboard (2004)
AppleScript question (1997)
WebDNA Quick Reference (Reserved Words) (2000)
check out page (SSL) *still* not loading on Netscape 4.0+ (1999)
Date Range search (1997)