Hi

I have a bit of a complicated scenario for a website I am building.

We have a series of event hosts who can create events and add attendees.

We have created a rules component to facilitate the adding of an attendee to an event, and built a view incorporating a 'prospective' attendee search (filtering by name) and VBO selection to action the adding of new attendees to the event.

When a host views an event, he or she sees the list of current attendees (generated by a view) and is presented with a button to add more attendees. When the button is clicked, it fires a cTools modal containing the search / add view. The search runs via AJAX so the results load fine inside the modal, but when the attendees are selected and the add action is executed (we skip confirmation) the addition of new attendees is performed and we just reload the event page / updated attendee list after the add process completes.

What would be awesome is if we could do the following:

1) Somehow shoehorn cTools AJAX to load the VBO form containing the view of search results
2) Submit the VBO action via AJAX
3) Use a callback from completion of the action to close the modal window and refresh the event attendee list via AJAX

Has this been done before and is it possible? I've done some searching on the VBO issue queue and the broader web but haven't really found anything related to this scenario.

Any pointers appreciated!

Comments

logicalor created an issue.