Javascript

Hello

I have a controller which executes a “render :partial” to actualise part
of my web page (a

object). When I do that I would like to call a
javascript function to complete my process.
How can I do that?
Anyone could help me?
Thanks
Regards

Paulo C. wrote:

Hello

I have a controller which executes a “render :partial” to actualise part
of my web page (a

object). When I do that I would like to call a
javascript function to complete my process.
How can I do that?
Anyone could help me?
Thanks
Regards

post on ruby on rails forum (this is the ruby forum).
http://www.ruby-forum.com/forum/3

(aside from that, maybe posting a little more informative code will help
out people answering)

just one fast solution i can think of (depending on u’r needs, this
could be useless) is to call the javascript function in the partial at
the end

render :partial -> ‘some’

and then in _some.rhtml do

rhtml code
rhtml code
rhtml code
.
.
.

my_javascript_funct() ========== enjoy.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs