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:

WebMerchant 1.6 and https (1997) Re:Hideif / Showif (1998) Hiding HTML and page breaks (1997) New WebCatalog site! (1997) F*** you (1998) [REFERRER] AND Truncation (1998) Merchant and WebCat 3.0 (1998) Public Beta for WebCatalog 4.0 is Available (2000) New Site with WebDNA (2003) WebCatalog NT beta 18 problem (1997) [WebDNA] unix-Linux Intel Apache Module version 8.0.2 (2016) Caching [include] files ... (1997) Cookies and WebCat?? (1999) Triggers or No Triggers? (1999) FYI: virus alert (1996) This list needs a digest: rant, rave... (1997) Bug? (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) SKU (1997) Teaching Help! (2000)