473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Image reload problem

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.

Apr 24 '07 #1
5 2365
at****@gmail.com said the following on 4/24/2007 8:46 AM:
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/
Apr 24 '07 #2
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

Apr 26 '07 #3
On 26 Apr 2007 04:25:10 -0700, in comp.lang.javascript
at****@gmail.com
<11**********************@n15g2000prd.googlegroups .comwrote:
>| 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.
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Apr 26 '07 #4
[...]
| 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

May 2 '07 #5
On 1 May 2007 22:26:46 -0700, in comp.lang.javascript at****@gmail.com
<11**********************@h2g2000hsg.googlegroups. comwrote:
>| [...]
| | 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.

>| 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
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
May 2 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gary \(Girish\) | last post by:
Hello: I am using SA-FileUp to enable members to upload their product images to my ISP sever. When member uploaded a new image file, the file name is replaced with the member ID and the old file...
3
by: Andy | last post by:
Can someone please help me with this problem? I don't know if this is possible in Java, so if it's not please point me in the right direction or to the right newsgroup! (I'm a newby to Java...
1
by: Marco Maroni | last post by:
How to force image refresh on client browser ? Is ti possible to force the refresh of the same image (tha was changed server-side) to the client, without user press Contrl+F5 in IE ? - Marco
4
by: Fred Nelson | last post by:
I've written a VB.NET Web application that allows a user to upload a picture. Once the file has been uploaded, I have an editing process that allows the user to rotate the image 90 degrees...
2
by: jon | last post by:
Hi This might be an easy one to answer but I have a web form in an ASP.NET 1.1 application with a hand-rolled HTML image button as follows which opens a help guide in a new window: <input...
1
by: Chuck Anderson | last post by:
I'm using a simple, pseudo progress bar. Very simply, I display a still image next to a form submit button until the user clicks on it, and then I change the image source to an animated version of...
1
by: chris | last post by:
I am uploading a new image to my database. The upload works ok and the new image is stored ok on server. The problem is can I force a reload on cache to display the new image. If I reload the page...
3
by: kayahr | last post by:
Hi there, I have a strange problem in Internet Explorer (IE6 and IE7). I'm writing a JavaScript application which allows the user to edit a photo composition. So when the user selects a photo then...
32
by: C. (http://symcbean.blogspot.com/) | last post by:
Hi all, I have an application which generates image graphs. These cache nicely at the client, however if the user submits more data, I'd like to force a reload of the image from the server. I...
7
by: dragiton | last post by:
SA Upload SQL Database variable types (image upload and storage) I am having trouble with the SA Upload utility. The following code used to work correctly. However, I lost my database and had to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.