Re: How to clear the cache

2013-05-20 Thread Mike Bonner
If you aren't using "load" to load the urls, unloading most likely doesn't apply. either a) your system or network is caching, or your isp is cacheing.. either way the easiest solution is to append something to the end of the url each time. Think someone mentioned this but might only be in the foru

Re: How to clear the cache

2013-05-20 Thread Phil Davis
Shawn, There is a simple example in the docs of how to use 'the cachedUrls' as Richmond mentioned: on unloadAll repeat for each line thisURL in the cachedURLs unload URL thisURL end repeat end unloadAll This way you don't have to keep track of your URLs, unless you want to

Re: How to clear the cache

2013-05-19 Thread Shawn Blc
Mr. Alex, Thank you very much. This newbie appreciates the help and explanation. Shawn On Sun, May 19, 2013 at 5:52 PM, Alex Tweedly wrote: > Shawn, > you have a couple of issues here ... > > 1. (minor) > if this is the entire script, then tCount is a local (i.e. handler > local) variable

Re: How to clear the cache

2013-05-19 Thread Alex Tweedly
Shawn, you have a couple of issues here ... 1. (minor) if this is the entire script, then tCount is a local (i.e. handler local) variable, so it is re-created each time the handler is called, so you finish up with the same value each time. I think you ant to make it a script-local variable (

Re: How to clear the cache

2013-05-19 Thread Shawn Blc
Alex, I added your idea of varying the URL each time, but still not able to get the script to work correctly. See below. For instance, on my mac, when I disable wifi I shouldn't be able to connect, when I enable my wifi I should be able to connect. What's wrong with my script? *on* mouseUp

Re: How to clear the cache

2013-05-19 Thread Alex Tweedly
unload URL tURL or if you prefer make the URL vary each time add 1 to tCount put ("http://mydomain.com/theurlname.lc?count="; & tCount) into tURL and use that URL. -- Alex. On 19/05/2013 12:59, Shawn Blc wrote: I have a little script to check for an internet connection. Problem is that if

Re: How to clear the cache

2013-05-19 Thread Richmond
On 05/19/2013 02:59 PM, Shawn Blc wrote: I have a little script to check for an internet connection. Problem is that if I take this little script out of the preOpenCard and put it into a button the results are the same. It keeps the last state, regardless if I disconnect my wifi or not. I'm th

How to clear the cache

2013-05-19 Thread Shawn Blc
I have a little script to check for an internet connection. Problem is that if I take this little script out of the preOpenCard and put it into a button the results are the same. It keeps the last state, regardless if I disconnect my wifi or not. I'm thinking that the URL that I'm connecting to