Forum: Ruby on Rails Ajax Drog and Drop Sorting Frequency

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6264d1c26369243733e9ee7f079349b2?d=identicon&s=25 Karni Karni (karnirevuri)
on 2007-04-18 15:42
Hi Friends,

I am new to ROR.I have implemented sorting by Ajax drag and drop and
interaction with database.
Working fine but if i sort records rapidly, getting nil point exception.

I am pasting the sortable list code.

<%= sortable_element('sortable_charts',
                       :update => 'assigned_chart_files',
                       :url => {:action => :update_positions , :quiz_id
=> @quiz.id },
                       :before => "Element.show('spinner')",
                       :success => "Element.hide('spinner')")%>

Also tryed with :frequecy => 3 or 4,or 2 but ssame error.

Nil point error is getting when i sort records rapidly.Normally it is
working fine.

Can u give any advice?

I hope i wil get solution..

Regards,
-Karni
This topic is locked and can not be replied to.