Hi all,
I''ve been playing around with drag / drop using the prototype /
scriptaculous helpers in Rails, and I''ve been hitting some browser
issues. In Firefox, everything is silky smooth but in IE7, it''s almost
unusably slow.
Here''s the code from the test page I used.
---------------
<% 90.times do |i| %>
<div id="recv_<%=i%>" style="width: 40px; margin:
5px; background:
brown;"><%=i%></div>
<%= drop_receiving_element("recv_" + i.to_s, {:url =>
{:controller
=> :test_controller, :action => :bah}, :update => "alter"})
%>
<% end %>
<% 90.times do |i|%>
<div id="drag_<%=i%>"
style="width:40px;background:yellow;margin:
5px;"><%=i%></div>
<%= draggable_element("drag_#{i}", :ghosting=>true,
:revert=>true) %>
</div>
<% end %>
<div id="alter" style="position:fixed; right:5px;
top:5px;">See here</
div>
---------------
The bah action just spits out the contents of param. Other than that,
this is it--no CSS, just your basic XHTML header, include the default
javascript libraries, nothing in the controllers.
In Firefox, I can increase the number of droppables and draggables
fairly high before there''s a noticeable performance hit. In IE, I can
can increase the number of draggables quite a bit as well, but
increasing the number of droppables quickly makes drag/drop laggy.
Anyone have any thoughts on optimizing this for IE? I was going to ask
the scriptaculous folks but I figured I''d stop here first.
-- Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---