Re: New Cart No. on same page

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47344
interpreted = N
texte = On 1/31/03 4:40 PM, Alex McCombie wrote:> At that point you fall back on > the random number to be sufficient (which it probably should be even with > WEBDNA and random seed weirdness). Speaking of uses for [random], I thought I would share one.Hopefully this isn't obvious to everyone (if it is just don't tell me), but we have often struggled with getting browsers like IE (both mac and win) to do what they are told when it comes to caching. Especially image caching!!!!Long ago we started passing useless variables on the end of some pages to force IE to go back and get the page again (index.tpl?x=345678) where x=[random][random][random][random] was a way to generate that code.But this didn't stop IE from still caching the images (regardless of the meta tags). Of course that was different depending on the version and the platform...But here is something we have been doing lately with great success: Actually passing a variable on the end of the image call doesn't seem to break ANYTHING in regards to how the image is served yet it sufficiently convinces the browser that the image is completely different than the last time the page was refreshed.Now YMMV, but so far this has eliminated the battle of getting a image to update at EVERY page load regardless of how the browser does or does not play nice with regards to the meta tags. Just thought I would share.Alex New World Media Chief Information Officer Drawer 607 800/724.8973 Fair Haven, NY 13064 Alex@NewWorldMedia.com http://OurClients.comInterface Designer WebDNA Programmer Database Designer------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: New Cart No. on same page (Marko Bernyk 2003)
  2. Re: New Cart No. on same page (Dan Strong 2003)
  3. Re: New Cart No. on same page (Rob Marquardt 2003)
  4. Re: New Cart No. on same page (Alex McCombie 2003)
  5. Re: New Cart No. on same page (Alex McCombie 2003)
  6. Re: New Cart No. on same page (Rob Marquardt 2003)
  7. Re: New Cart No. on same page (Alex McCombie 2003)
  8. Re: New Cart No. on same page (Rob Marquardt 2003)
  9. Re: New Cart No. on same page (Matthew Bohne 2003)
  10. Re: New Cart No. on same page (John Peacock 2003)
  11. Re: New Cart No. on same page (Donovan 2003)
  12. Re: New Cart No. on same page (Matthew Bohne 2003)
  13. Re: New Cart No. on same page (Gyuri 2003)
  14. Re: New Cart No. on same page (Glenn Busbin 2003)
  15. Re: New Cart No. on same page (Matthew Bohne 2003)
  16. Re: New Cart No. on same page (Alex McCombie 2003)
  17. Re: New Cart No. on same page (Gary Krockover 2003)
  18. New Cart No. on same page (Matthew Bohne 2003)
On 1/31/03 4:40 PM, Alex McCombie wrote:> At that point you fall back on > the random number to be sufficient (which it probably should be even with > WEBDNA and random seed weirdness). Speaking of uses for [random], I thought I would share one.Hopefully this isn't obvious to everyone (if it is just don't tell me), but we have often struggled with getting browsers like IE (both mac and win) to do what they are told when it comes to caching. Especially image caching!!!!Long ago we started passing useless variables on the end of some pages to force IE to go back and get the page again (index.tpl?x=345678) where x=[random][random][random][random] was a way to generate that code.But this didn't stop IE from still caching the images (regardless of the meta tags). Of course that was different depending on the version and the platform...But here is something we have been doing lately with great success:[random][random][random][random][random][random][random] border=0> Actually passing a variable on the end of the image call doesn't seem to break ANYTHING in regards to how the image is served yet it sufficiently convinces the browser that the image is completely different than the last time the page was refreshed.Now YMMV, but so far this has eliminated the battle of getting a image to update at EVERY page load regardless of how the browser does or does not play nice with regards to the meta tags. Just thought I would share.Alex New World Media Chief Information Officer Drawer 607 800/724.8973 Fair Haven, NY 13064 Alex@NewWorldMedia.com http://OurClients.comInterface Designer WebDNA Programmer Database Designer------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Alex McCombie

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:

Mac: LModelDirector bug fix (1997) Languages (1997) 4.0.2b5 not finding databases under load (2000) passing info to thankyou.tpl (1998) New commands in Final candidate (1997) html in a database (1998) Log-in Scheme (2003) WebCat2 - Getting to the browser's username/password data (1997) WebCat2 beta 11 - new prefs ... (1997) RE: Nt's Latest? (1997) Re:2nd WebCatalog2 Feature Request (1996) Tiny Store (1998) Sorting by date (1997) Absolute path (2003) date format (another question) (2000) [REPLACE] inside [FOUNDITEMS] (1998) trying to filter out various words from user entered text (2004) There's a bug in the math context ... (1997) Expiration of Carts (1997) Verifying both name and password (was: THANKS) (1997)