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), butwe have often struggled with getting browsers like IE (both mac and win) todo 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 toforce IE to go back and get the page again (index.tpl?x=345678) wherex=[random][random][random][random] was a way to generate that code.But this didn't stop IE from still caching the images (regardless of themeta tags). Of course that was different depending on the version and theplatform...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 tobreak ANYTHING in regards to how the image is served yet it sufficientlyconvinces the browser that the image is completely different than the lasttime the page was refreshed.Now YMMV, but so far this has eliminated the battle of getting a image toupdate at EVERY page load regardless of how the browser does or does notplay nice with regards to the meta tags.Just thought I would share.AlexNew World MediaChief Information Officer Drawer 607800/724.8973 Fair Haven, NY 13064Alex@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:
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), butwe have often struggled with getting browsers like IE (both mac and win) todo 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 toforce IE to go back and get the page again (index.tpl?x=345678) wherex=[random][random][random][random] was a way to generate that code.But this didn't stop IE from still caching the images (regardless of themeta tags). Of course that was different depending on the version and theplatform...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 tobreak ANYTHING in regards to how the image is served yet it sufficientlyconvinces the browser that the image is completely different than the lasttime the page was refreshed.Now YMMV, but so far this has eliminated the battle of getting a image toupdate at EVERY page load regardless of how the browser does or does notplay nice with regards to the meta tags.Just thought I would share.AlexNew World MediaChief Information Officer Drawer 607800/724.8973 Fair Haven, NY 13064Alex@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)