Updataing a Database with AJAX with Rubaxa Sortable

89 Views Asked by At

I have multiple dynamic lists and list items.

I have successfully implemented Rubaxa's sortable to allow the movement of any list item to any list.

I initialise the JS with a foreach loop on $val['name'] ( each of my lists) eg;

new Sortable('.$val['name'].', {
            group: "quotes",
    });';

I have tried augmenting the JS with additional lines to initiate an ajax post when the dragged item has landed.

I do not require help with serialisation, or data/database, or php.

My question ( being useless with JS is where and how do i trigger the ajax?

I have tried writing a function, creating events and even random methods which I felt may make sense

0

There are 0 best solutions below