Connecting Tech Pros Worldwide Help | Site Map

Image reload problem

atulvp@gmail.com
Guest
 
Posts: n/a
#1: Apr 24 '07
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.

Randy Webb
Guest
 
Posts: n/a
#2: Apr 24 '07

re: Image reload problem


atulvp@gmail.com said the following on 4/24/2007 8:46 AM:
Quote:
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.
Click the refresh button perhaps? Use a queryString parameter. Search
the archives.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
atulvp@gmail.com
Guest
 
Posts: n/a
#3: Apr 26 '07

re: Image reload problem


On Apr 24, 9:41 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
Quote:
atu...@gmail.com 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

Jeff North
Guest
 
Posts: n/a
#4: Apr 26 '07

re: Image reload problem


On 26 Apr 2007 04:25:10 -0700, in comp.lang.javascript
atulvp@gmail.com
<1177586710.527069.137780@n15g2000prd.googlegroups .comwrote:
Quote:
>| On Apr 24, 9:41 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
>| atu...@gmail.com 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.
---------------------------------------------------------------
jnorthau@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
atulvp@gmail.com
Guest
 
Posts: n/a
#5: May 2 '07

re: Image reload problem


[...]
Quote:
Quote:
| manually refresh the page many time until it gives me correctimage.
|
Try clearing the cache for both browsers - sounds like the cache maybe
corrupted.
---------------------------------------------------------------
jnort...@yourpantsyahoo.com.au : 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.

<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

Jeff North
Guest
 
Posts: n/a
#6: May 2 '07

re: Image reload problem


On 1 May 2007 22:26:46 -0700, in comp.lang.javascript atulvp@gmail.com
<1178083606.450202.142890@h2g2000hsg.googlegroups. comwrote:
Quote:
>| [...]
>| | manually refresh the page many time until it gives me correctimage.
>| |
>| Try clearing the cache for both browsers - sounds like the cache maybe
>| corrupted.
>| ---------------------------------------------------------------
>| jnort...@yourpantsyahoo.com.au : 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.

Quote:
>| 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
---------------------------------------------------------------
jnorthau@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Closed Thread


Similar JavaScript / Ajax / DHTML bytes