From: James Britt Date: 2006-03-13T00:25:52+09:00 Subject: Re: cgi script send a bad image to the browser Alex wrote: > I'd like do do something like this: > > 1)The user insert some data in a field, than press a button > 2)A script receive the data and return some textual info and an image > > With ajax I can make an interface with an instant textual answer from > the system (without page refresh), but I'd like to do the same thing > with the image. > If I use this technique: > > The image is updated only when I refresh the page. > Ummm... maybe I simply cannot do it. See my previous response to your initial message "You might be able to us JavaScript to get a reference to the desired Image object (in document.images )and update the src property." Google around for DHTML, JavaScript, and image replacement/preloading. -- James Britt "You harmonize; then you customize." - Wilson Pickett