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:

Sendmail and textarea (1998) form data submission gets truncated (1997) Separate server for jpg/gif files (1998) math a various prices (1997) Explorer 3.0 (1997) Resume Catalog ? (1997) keep W* in front applescript? (1998) Associative lookup style? + bit more (1997) [WebDNA] Email With Auth (2013) [WebDNA] blogger (2009) PSC recommends what date format yr 2000??? (1997) WebDNA wholesale ... (2002) IE Cache Problems... (1999) [cart] not being interpreted inside [founditems] (1997) RE: [WebDNA] Passing a text variable via copyfile (2019) CSS in HTML emails? (2003) blank fields (1999) Search bug. Help (2002) RE: [WebDNA] ONLY the FIRST continuous run of numeric chars? (2008) HELP WITH DATES (1997)