Forum: Ruby on Rails Ajax Drog and Drop Sorting Frequency

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Karni K. (Guest)
on 2007-04-18 17: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
=> },
                       :before => "'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..

This topic is locked and can not be replied to.