I did this (see below), however, although the form is submitting the dialog box won't close!! I don't appear to get any error with it. The same close code works for the 'cancel action'. I also am unsure how to confirm success/failure to the user, although I can reload the tab behind if I want!
- "Save": function () {
- var formData = $('#editadmin').serializeArray();
- $.ajax({ type: "POST", url: "administrators/ssbin/do_edit_administrator.php?aduid=1", data: formData, success: function() {
- $(this).dialog('close');
- }
- });
- },
- "Cancel": function() {
- $(this).dialog("close");
- }