[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Javascript

Shai Rosenfeld

10/16/2007 11:24:00 AM

Paulo Carvalho wrote:
> Hello
>
> I have a controller which executes a "render :partial" to actualise part
> of my web page (a <DIV> 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.c...

(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*