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:

Problems with [Applescript] (1997) WebCat2 - Getting to the browser's username/password data (1997) I think WebDNA-Talk died ... :( (1997) setting cookies then redirecting? (1998) [hideif] (1998) Unexpected error (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Silly Question (1997) .html to .tpl (1998) Separate SSL Server (1997) Multi Actions (1999) New syntax feedback for 4.0 (2000) Nested vs conditional (1997) [WebDNA] Serial numbers and pricing for WebDNA 7.0 (2011) Additional Subtotals (1999) Pirated WebCat? NOT... (2003) RE: new cart IDs being assigned somehow (1997) Sorting Results (1999) math with multiple [founditems] (1999) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)