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:

NetForms for email (1998) Can you do this??? and other stuff (1997) deadlock (2000) customer.db and forms (1999) Appendfile memory usage (redux) (2003) Help!!!! (1999) Almost a there but..bye bye NetCloak (1997) WebCat2: Formulas.db question (1997) Emailer setup (1997) Emailer choke (1997) Credit card processing - UK (1997) OT: Google (2002) BannerAds demo (1998) WebCat b13 CGI -shownext- (1997) Re:Emailer problem....still (1997) Showif, Hideif reverse logic ? (1997) Problem with version 4 browsers (1998) WebMechant (2000) all records returned. (1997) html email again... (2001)