Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image refresh

Status
Not open for further replies.

5474N

Programmer
Jul 13, 2005
11
CA
I have created a page that produces an image,
according to a text field in a form on the same page.
The form has a default value of "Sample", so the first
image you see created is an image of the text.."Sample"
When you submit the form, the image gets reproduced and
overwrites the old image.
My problem is that when the page has finished parsing,
the image has not finished being re-written, and therefore
doesn't show any changes when the page finishes loading.
What I need is for the "new" image to show when the form is submitted.
I've tried a couple javascript image refresh scripts without much luck. I also tried a javascript 5 second pause before the image is refreshed.I also tried a cf pause, but no luck with that either ...
Any ideas ?
 
Hiya,

when you've created the image just ensure that you (a) call the image up using a random added to the name e.g.
Code:
<img src="./MyImage.jpg?rnd=#CreateUUId()#" />
if the image however hasn't been created then try using a method of creating the image in coldfusion so the user won't be refered back to the page until creation is complete... for more information on how te create images in CF have a look in google for CFX_Image or CFX_GIFGD

We never fail, we just find that the path to succes is never quite what we thought...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top