I am trying to implement the Retrun to Sender Java Script on Page 317. It says to do the following:
Edit the exsiting script, which should resemeble:
I am successful at doing this for the Cancel button, just as it is described in the book. When I add this same fragment for the Save button, I find that the dialog closes, but the commit no longer works. If I do not add this fragment, then the commit works, but the form does not close.