Forum: Ruby on Rails Re: AJAX update of <img> element?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-04-18 03:35
(Received via mailing list)
Thanks, that's what I ended up doing, essentially.

It eventually dawned on me that an <img> element has no .value, like a
div does, so trying to give it new data was pointless.

I ended up having to add another controller action to, as you say,
replace the div contents with a new img tag, rather than the contents of
the existing img.

This topic is locked and can not be replied to.