9 messages in com.googlegroups.pylons-discussRe: AJAX Puzzle
FromSent OnAttachments
jerryji30 Jan 2008 07:53 
Dunk Fordyce30 Jan 2008 08:35 
Mike Orr30 Jan 2008 10:13 
jerryji30 Jan 2008 12:17 
Luis Bruno31 Jan 2008 02:00 
Mike Orr31 Jan 2008 10:34 
Luis Bruno31 Jan 2008 11:47 
Mike Orr31 Jan 2008 12:00 
jerryji01 Feb 2008 11:23 
Subject:Re: AJAX Puzzle
From:Mike Orr (slug@public.gmane.org)
Date:01/30/2008 10:13:07 AM
List:com.googlegroups.pylons-discuss

On Jan 30, 2008 7:54 AM, jerryji
<jerr@public.gmane.org> wrote:

I'm serving dynamic images from my controller so that every time / image/next is accessed, it returns a new image as a byte stream. This is all fine until I wrap it in a block <div "to-be-updated-by- ajax"><img src="/image/next" alt="next image" /></div> and try to get the image updated with some AJAX call. It seems that since the content within the <div></div> block never changes, even though the line is really coming from the server upon every AJAX request, my image never gets updated.

Is there a way to achieve what was intended? Any hint would be greatly appreciated!

You could put a random query string on it to make the browser think it's a different image.