From: Kumar Saurav Date: 2009-01-19T19:30:11+09:00 Subject: Re: How to refresh Image through ajax request Albert Schlef wrote: > Kumar Saurav wrote: >> I am using Ajax Request(Rmagick in controller) >> for changing image on my DIV but the problem is it refresh for first >> time only > [...] >> 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' RAILS_ROOT: C:/Myworkspace/css_menu_builder - import Application Trace | Framework Trace | Full Trace app/controllers/image_builders_controller.rb:68:in `write' app/controllers/image_builders_controller.rb:68:in `index' So please help me how can i add any random string after the URL Please let me help ... Thanks in advance -- Posted via http://www.ruby-forum.com/.