Get feedback after "Save"

1 posts, 0 answers
  1. JAVIER BABUGLIA
    JAVIER BABUGLIA avatar
    5 posts
    Member since:
    Jun 2010

    Posted 14 Jun 2018 Link to this post

    Hi guys,
    I'm having trouble getting some kind of a feedback after the "Save" button.I've disabled the dialogbox with the 2 options and directly save the image on my server and it works fine, but I'm unable to set a label value to something like "Image saved" or whatever. I leave my javascript for the toggle. Another option would be to redirect my user whatever page, but can't get it done either.

    Any ideas? 

    Thanks!

    function OnClientCommandExecuting(imEditor, eventArgs) {

            if (eventArgs.get_commandName() == 'Save') {
                imEditor.saveImageOnServer('', true);

                //Prevent the buil-in Save dialog to pop up
                imEditor.setToggleState('Save', false);
                imEditor.saveImageOnServer('', true);
               
                eventArgs.set_cancel(true);
               
            }
        }

Back to Top