When I update a div via AJAX, Rails eats the Javascript I''m trying to
send. My code is below... the draggable code (or anything I enclose in
<script> tags) does NOT render in the browser. This same code DOES work
when written via the original GET.
Code follows:
--------------------------------------------------------
<% if not @timeline_clips.nil? %>
<% @timeline_clips.each do |movie| %>
<%= image_tag @thumbs_location + "/#{movie.hashed_value}.jpg",
:id => "movie_#{movie.id}",
:alt => "#{movie.title}",
:class => ''thumbs'' %>
<%= draggable_element "movie_#{movie.id}", :revert => true,
:ghosting =>
true %>
<% end %>
<% else %>
No clips in timeline.
<% end %>
<form action="timeline" method="post">
<input type=hidden name="refresh_timeline"
value="true">
<input type=submit value="Refresh">
</form>
-------------------------------------------------------
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---