On process of a form submission return the node 'view' of the node as json to the 'complete' handler
| Project: | Ajax |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
I'm not sure if this can currently be done, i couldnt see anything in the code, but let me know if i've missed something.
Use case - I have a page where i have embedded a node edit form directly under the node content. A user is able to ajax submit the node edit form to update the content. On the form submission i want the updated node to be returned to on 'complete' state so i can replace the old content with the updated content.
This would be a great addition, currently, i am having to fire off an additional AJAX GET request on 'complete' to get the updated data, and then replace it on the page. If it were to come back as part of the args object (or possibly in a different object) as a response from the form POST to the plugin_api then this would be only 1 ajax call instead of 2, and a resulting increase in performance.
