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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A419b50c5a6b2aadd0ebe7d13d4b264e?d=identicon&s=25 unknown (Guest)
on 2006-04-18 01: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.

Chris.
This topic is locked and can not be replied to.