Hi,

I'm using scriptaculous for making two elements sortable and also for 
moving children between each other. The code I'm using is pretty 
straight forward. I have two divs, and i'm sorting the <p> elements 
inside (i tried first with ul/li and the results were the same, just in 
case you were wondering). A bit below you can find the piece of code I'm 
using.

Bottom line is, when the children in the element are a small number, 
then everything goes perfect, but when the element has a lot of children 
(~200) then there is a huge slowdown in performance. From the moment I 
click until the script responds and lets me actually move the children 
some seconds can pass by. I have observed this behaviour both on Mozilla 
and IE.

Any suggestions to improve performance here?

in case you are curious, my code for making the element sortable is below

thanks!!

j


<%= sortable_element("divSourceFields" ,
    :dropOnEmpty=>true,
    :containment => ["divSourceFields","divTargetFields"],
    :constraint =>false,
    :hoverclass => '"over"' ,
    :scroll => '"divSourceFields"',
    :scrollSensitivity => '1',
    :scrollSpeed => '100',
    :ghosting => true,
    :tag => 'p'  
    )
    %>

--~--~---------~--~----~------------~-------~--~----~
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 [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-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to