Forum: Ruby on Rails Executing javascript in the responseText

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.
C0dce094a2af043d002c0c957530003c?d=identicon&s=25 Love AJAX (Guest)
on 2007-07-17 16:34
(Received via mailing list)

Is there a way of executing javascript in the responseText?

I have a controller action that sends some javascript as part of a
partial to the browser. But it won't get executed after the browser
receives it. One option is to use RJS but I am reusing this same
partial in other places. So I can't replace this partial with an RJS.
Do I have any other options?

This topic is locked and can not be replied to.