Hello all,
I've got an action that's somewhat heavy (slow) that returns ...js.erb. The
action completes fine, and I can see the results in firebug in the console, but
the javascript isn't being executed, on the production (more like production
test) box. It works fine locally in development env, and if I copy and paste
the returned stuff from the firebug console response it will execute just fine.
Here's the js erb:
$("#<%...@element_id%>").fadeOut();
$("#<%...@element_id%>").hide(100);
$("#FirstTheme").append("<%= escape_javascript(render(:partial => 'tag',
:locals=>{:entity_id=>@entity_id, :theme_id=>@theme_id, :entity=>@entity,
:element_id=>@element_id, :parent_id=>@parent_id, :tag=>@tag})) %>");
$("#ObsList").html("<%=
escape_javascript(render(:partial=>'explore/observation',
:collection=>@observations))%>");
I'm using jquery 1.4.2, rails 3. I'm not a jquery expert, so I'm scratching my
head as where to look for debugging this. Thanks for any pointers.
Bill
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.