From: Kumar Saurav Date: 2009-01-19T21:45:23+09:00 Subject: Re: How to refresh Image through ajax request Albert Schlef wrote: > Kumar Saurav wrote: >> Albert Schlef wrote: >>> Kumar Saurav wrote: >>> [...] >>>> render :text => "" >>> >>> Perhaps the browser caches this image. The browser isn't aware that it >>> has changed. I suggest you add some random string to the image's URL. >>> E.g. /image/xyz.jpg?56543653. >> >> Hi i just hard code the path like "public/images/xyz.jpg?1234" but after >> that i get the following error >> >> no encode delegate for this image format `public/images/xyz.jpg?1234' > > You added that random string in img_rev.write(). No good. Add it to the > URL. In other words, add it in the tag. You need to send the > browser '' instead of just ' src="pic.jpg">'. Hi i solved out that problem through your suggestion Thanks. Thanks a lot And Hi Ryan I am ensuring you that i will try to post in the right list Thanks for your support also. -- Posted via http://www.ruby-forum.com/.