search for: script_list

Displaying 1 result from an estimated 1 matches for "script_list".

2012 Feb 17
0
Passing a value to js.erb
...> then, I can retrieve it by var idval = $(''#video-id'').val(); It certainly gets the value. The problem is then I need to pass it to the following. I tried, $(''#listtrans'').html(''<%= escape_javascript(render :partial => "videos/script_list", :locals => { :scripts => Script.find_all_by_video_id( idval ) } ) %>''); //<= idval this does not work. $(''#listtrans'').html(''<%= escape_javascript(render :partial => "videos/script_list", :locals => { :scripts => Scrip...