Rebinding page after image is resized on server not showing new sized image

E

Earl Teigrob

I have written a photo app that allows the administrator to resize photos in
an admin panel above the photo on the page. When the the new size is
entered, the data is saved into a datastore and the page is rebound. During
the rebining process, the size of the image on the server is phisically
changed to the new size (uses the photo master to size from). This
rebinding works fine for everything except the photo itself. The page does
not show the new size on the web page until the browser refresh button is
pressed. I assume this has something to do with caching but do not know how
to resolve it. If anyone has any ideas, please let me know.

Thanks

Earl
 
J

John Saunders

Earl Teigrob said:
I have written a photo app that allows the administrator to resize photos in
an admin panel above the photo on the page. When the the new size is
entered, the data is saved into a datastore and the page is rebound. During
the rebining process, the size of the image on the server is phisically
changed to the new size (uses the photo master to size from). This
rebinding works fine for everything except the photo itself. The page does
not show the new size on the web page until the browser refresh button is
pressed. I assume this has something to do with caching but do not know how
to resolve it. If anyone has any ideas, please let me know.


Instead of assuming that this is a caching issue, I'd recommend you look at
the resulting HTML and see if perhaps the size isn't changing in the <img>
tag.
 
E

Earl Teigrob

Thanks, john, but the size of the image is never set in the image tag to
start with, so that is not the issue. As I mentioned, the images are
phisically resized on the server itself and the tag just uses the actual
size of the image on the server. However, the width property of the table
that holds the image is set to the width of the image (using the width
property on the image itself) and this is being set correctly. For example,
when the width of the image is increased, the table the holds the image is
made wider, based on the new size of the image on the server, but the image
itself is not reloaded from the server to show the new size. (until a
refreash, of course)

I hope this helps to explain it better.

Thanks for your help

Earl
 

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

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top