And it works perfectly fine, the first time. But the second time and the rest of the times (after clearing the textboxes), the same time as before will continue to pop up, each time I release a key. But it should be the current time, not the same time as before! :( I would really appreciate some help here. What in my code is wrong? Or is it IE 7 that troubles me?

07-06-2007, 11:50 PM

carlitos_way

I think (but if i'm thinking wrong, correct me) that IE caches the result, so it's always the same.

this is a classical problem, that can be avoided by passing a random useless parameter, or a datetime, so that IE thinks that you're requesting something new, and it avoids to cache the result.

07-07-2007, 01:12 AM

TriKri

Quote:

Originally Posted by carlitos_way

I think (but if i'm thinking wrong, correct me) that IE caches the result, so it's always the same.

this is a classical problem, that can be avoided by passing a random useless parameter, or a datetime, so that IE thinks that you're requesting something new, and it avoids to cache the result.

Wow, thanks! That worked! I just added a junk-counter and added it to the the adress as a GET-variable. :thumbsup: Do you know of some way to tell IE to reload the page anyway or maybe to clear that specific history so it will be reloaded?

07-07-2007, 11:42 PM

carlitos_way

When I use Firefox, I press ctrl+f5 to reload all the page without using the version cached. I think you can try the same on IE

this can be a solution for you, but not for the people who'll see your end application.. but i don't know any other answer, sorry :)

07-09-2007, 04:16 PM

NancyJ

I've got the exact same problem in IE, except adding a random number to the url isnt helping, any ideas?

I've got the exact same problem in IE, except adding a random number to the url isnt helping, any ideas?

How random is the random number? (I haven't used that random generator before, I believe, if it isn't the same as in the C/C++ math library) could it maybe have happened that the rendom generator used the same random seed all the times?

Just taking a shot, try adding a counter instead as I did, there could be a chans that helps.

07-09-2007, 06:23 PM

NancyJ

I tried a counter and still no luck. And yes I checked that the counter was being incremented

07-09-2007, 06:57 PM

TriKri

Quote:

Originally Posted by NancyJ

I tried a counter and still no luck. And yes I checked that the counter was being incremented

You have? I was just gonna ask you that!

07-10-2007, 01:19 AM

A1ien51

Using POST would clear it up since GET is supposed to cache.

you could also do
xmlhttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");

Eric

07-10-2007, 04:56 PM

NancyJ

tried both the header and the post method - still no luck, it still only works the first time in IE