Hello,
PHPRunner allows the use of inline add/edit of records on the list pages. Once a record is being added or edited through this manner, the button "Save all" (with id "saveall_edit1") appears and, when pressed, calls some PHP script which saves the values to the table.
I currently am using custom buttons that will allow the user to proceed to another page, but for the convenience of the user, I would like to save all inline adds/edits when these buttons are pressed so that the user will not have to press "Save all" or accidentally lose all inline-edits. I know through jQuery I can use
$("#saveall_edit1").click()
to save the records; however, adding a jQuery callback function, e.g.
$("saveall_edit1").click(
function () { /* some code */ }
);
will not work appropriately, because the callback function there is not synchronous with the call used to update the database. I could use a time delay, and that has worked, but that is not an elegant solution and may not always work.
I would like to be able to, through some method, save all inline edits and then proceed with some arbitrary JavaScript code. Is this possible?
Thank you for any input.