Re: Javascript with select in partial

Hassan Schroeder
Tue, 01 Sep 2009 02:05:32 -0000

On Mon, Aug 31, 2009 at 6:41 PM,
RVince<rvince99-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
wrote:
>
> Thank you Hassan -- perhaps I am doing something stupid and not
> realising it? It is failing for me in Firefox (latest version) and
> Chrome (latest version) I have not tested MSIE. I am running Rails
> 2.3.2.

First, make sure you''re running Firebug with FF so you can see if
any JS errors are causing your script(s) to exit.

Second, in my simple test case I have the following:
<%= link_to_remote ''Get another opinion'',
:url => {:action =>''opinion'', :method =>
''get''}, :update => ''things/opinion'' %>
<%= render :partial => ''opinion'' %>

--
Hassan Schroeder ------------------------
hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
twitter: @hassan