Hi,
I am trying to carry out some processing client side before firing off the editor event to the server. I have added a custom button called SaveAndExit. When I click either the Save or SaveAndExit button, I want to set an "isSaving" flag in javascript. When this is done, I want to call the server side handling of the buttons.
I guess it will start like your client side trapping of the Save button in capture_save_button_click.aspx. What code would I need to add in order to then fire the server side event. On the server side I need to differentiate between the Save and SaveAndClose command.
This is so I can determine whether the window is unloading due to the window close X being pressed or is being sent server side to do a save. When the windows close X is pressed I want to prompt the user to save, but only if they are not already saving (isSaving == true).
regards
Colin