Image reload problem

A

atulvp

Here, I can change original uploaded image with an another image. It
is working fine in IE but not working in Mozilla. In IE after
uploading image I am not able to see that image directly. It is
showing me old image but when i will press refresh button then it will
show me uploaded image. Please give me the solution.
 
A

atulvp

(e-mail address removed) said the following on 4/24/2007 8:46 AM:
[...]

Thanks for reply, I think i am unable to explain u properly. first
time i visit my browser i see correct image and when without unloading
the page in my browser I modify the image in background, and refresh
the page second time it still gives me the old image, I need to
manually refresh the page many time until it gives me correct image.

Then please give me the solution.

Thanks
 
J

Jeff North

| > (e-mail address removed) said the following on 4/24/2007 8:46 AM:
| >
| [...]
|
| Thanks for reply, I think i am unable to explain u properly. first
| time i visit my browser i see correct image and when without unloading
| the page in my browser I modify the image in background, and refresh
| the page second time it still gives me the old image, I need to
| manually refresh the page many time until it gives me correct image.
|
| Then please give me the solution.
|
| Thanks

Try clearing the cache for both browsers - sounds like the cache maybe
corrupted.
 
A

atulvp

[...]
Try clearing the cache for both browsers - sounds like the cache maybe
corrupted.

How can i clear cache? can u give me an example?
I am using following way to load my image.

<script>
var today=new Date();
var time=today.getSeconds();
var i="http://lucky.myrice.com/back.jpg?"+time.valueOf();
document.write("<img src="+i+">");
</script>

Is this right way?

Please tell me if you have any other idea.

- Thanks
 
J

Jeff North

| [...]
| > >| manually refresh the page many time until it gives me correctimage.
| > >|
| > Try clearing the cache for both browsers - sounds like the cache maybe
| > corrupted.
| > ---------------------------------------------------------------
| > (e-mail address removed) : Remove your pants to reply
| > ---------------------------------------------------------------
|
| How can i clear cache? can u give me an example?
| I am using following way to load my image.

With Firefox 2.0.0.3
Tools | Options | Privacy
In the Private Data area click the Setting button.
Ensure that cache is selected within the list.
Click ok twice to close both popup windows.
Tools | Clear Private Data


In IE 7:
Tools | Delete Browser History
Click the Delete Files... button.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top