Re: Adding up line items.

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28756
interpreted = N
texte = on 3/9/2000 8:42 AM, Christopher Feyrer at chris@foodspot.com wrote:>>>> Because you need to refresh the page. >>>> >>>> When I add an item to a cart I have: >>>> >>>> [showif [command]=add] >>>> [redirect cart.tpl?cart=[cart]&command=showcart] >>>> [/showif] >>>> >>>> Which fixed all those problems for me. >>> >>> I'm doing that..but sometimes it loads the page from cache. Any way you >>> know of forcing a reload from the server? >>> >>> Chris >> Tip No2. >> On each page that you have define a variable. >> [Text]no_cache=[date %y%m%d%M%S][/Text] >> >> On each link put the variable in ,something like >> somefile-htm?&cart=[cart]&[no_cache] >> On each form action but in >>
>> >> That should solve your caching problems. > > Unfortunately, that command does not appear to be available in WebCat 2.x. > And, unfortunately, I am not in a position to upgrade...What you need is to force your browser to reload the page from the server and not from cache. What Michael was giving you was a way to add a new variable to the url that makes the browser *have* to ask the server for a new page. If you are running Webcat 2.x, you can't use the [text] context, but you can easily add a variable to the url. I find that using a combination that _should_ not repeat (like the date) works best for me. I use the [random] context and have had great success: somefile.html?cart=[cart]&A[random]=[random][random] or Note that the form method is get. I have not had a need to do this trick on forms with a method of post. I believe the browsers always load a new page from the server when submitting a form via post method. Someone correct me if I'm wrong on that.Hope that helps,Mike ------------------------------------------------------------- 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: Adding up line items. (Kenneth Grome 2000)
  2. Re: Adding up line items. (Christopher Feyrer 2000)
  3. Re: Adding up line items. (Kenneth Grome 2000)
  4. Re: Adding up line items. (Christopher Feyrer 2000)
  5. Re: Adding up line items. (Glenn Busbin 2000)
  6. Re: Adding up line items. (Christopher Feyrer 2000)
  7. Re: Adding up line items. (Mike Davis 2000)
  8. Re: Adding up line items. (John Butler 2000)
  9. Re: Adding up line items. (Michael O Shea 2000)
  10. Re: Adding up line items. (Christopher Feyrer 2000)
  11. Re: Adding up line items. (Michael O Shea 2000)
  12. Re: Adding up line items. (Christopher Feyrer 2000)
  13. Re: Adding up line items. (Kenneth Grome 2000)
  14. Re: Adding up line items. (Jesse Williams Proudman 2000)
  15. Re: Adding up line items. (Christopher Feyrer 2000)
  16. Re: Adding up line items. (Jesse Williams Proudman 2000)
  17. Adding up line items. (Christopher Feyrer 2000)
on 3/9/2000 8:42 AM, Christopher Feyrer at chris@foodspot.com wrote:>>>> Because you need to refresh the page. >>>> >>>> When I add an item to a cart I have: >>>> >>>> [showif [command]=add] >>>> [redirect cart.tpl?cart=[cart]&command=showcart] >>>> [/showif] >>>> >>>> Which fixed all those problems for me. >>> >>> I'm doing that..but sometimes it loads the page from cache. Any way you >>> know of forcing a reload from the server? >>> >>> Chris >> Tip No2. >> On each page that you have define a variable. >> [text]no_cache=[date %y%m%d%M%S][/Text] >> >> On each link put the variable in ,something like >> somefile-htm?&cart=[cart]&[no_cache] >> On each form action but in >> >> >> That should solve your caching problems. > > Unfortunately, that command does not appear to be available in WebCat 2.x. > And, unfortunately, I am not in a position to upgrade...What you need is to force your browser to reload the page from the server and not from cache. What Michael was giving you was a way to add a new variable to the url that makes the browser *have* to ask the server for a new page. If you are running Webcat 2.x, you can't use the [text] context, but you can easily add a variable to the url. I find that using a combination that _should_ not repeat (like the date) works best for me. I use the [random] context and have had great success: somefile.html?cart=[cart]&A[random]=[random][random] or [random] VALUE=[random][random]>Note that the form method is get. I have not had a need to do this trick on forms with a method of post. I believe the browsers always load a new page from the server when submitting a form via post method. Someone correct me if I'm wrong on that.Hope that helps,Mike ------------------------------------------------------------- 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 Mike Davis

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:

Using [detete] (1998) [WebDNA] SEARCH question (2011) can pull down menu do a ONCHANGE= without Java script? (2000) [taxRate] [TaxTotal] ? (1997) New Site Announcement (1998) WC2.0 Memory Requirements (1997) Unceremonious Unwanted Unsubscription (1999) Summing fields (1997) 'The List" (2006) Help! WebCat2 bug (1997) RAM crash (1998) Never mind ...How would you sort this? (2000) WebCat2b12 CGI Mac - [shownext] problem (1997) RE: Help name our technology! (1997) graphics server, SSL, Netscape 4.0 (off topic) (1998) SKU (1997) [WebDNA] [sendmail] random duplicates (2010) Bug alert! (1997) Download Question (1997) Search in 2 or more catalogs (1997)