I can see that the Hobo.ajaxRequest should have a URL to invoke
(obviously :))..

I my case i have 3 transistions with these generated routes PUT:
/event_attendees/:id/available
/event_attendees/:id/volunteer
/event_attendees/:id/manage

The list item itself that gets moved (and triggers the receive
function) hasn't got any id, so i'm looking for at nice way of
implementing that, so its easy for the js to pull it out (sorry for
the noob approach, but i haven't really worked with js before).


On 5 Feb., 15:04, Bryan Larsen <[email protected]> wrote:
> http://cookbook.hobocentral.net/manual/ajax#submitting_an_ajax_form_v...
>   should have what you need.  If you have more questions, just ask.
>
> Bryan
>
>
>
> Mikkel WF wrote:
> > I'm trying to make a page with transitions not based on buttons, but
> > on moving an element from one ul-list to another.
>
> > I've made the functionality of moving an element between lists with
> > jQuery like this:
>
> > jQuery(document).ready(function() {
> >    jQuery("#manager").sortable({
> >            connectWith: ['#volunteer', '#manager'],
> >            receive: function(event, ui) {
> >            }
> >    });
> >    jQuery("#volunteer").sortable({
> >            connectWith: ['#manager', '#available']
> >    });
> >    jQuery("#available").sortable({
> >            connectWith: ['#volunteer', '#manager']
> >    });
> > });
>
> > the receive function should hold the ajax call to the database, but
> > i'm not really sure what to put there. is there a pure JS-way to
> > update the transition..?

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to