Carrying our Client AND Server side processing

Last post 04-14-2007, 1:08 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  02-21-2007, 9:01 AM 26881

    Carrying our Client AND Server side processing

    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
  •  04-14-2007, 1:08 AM 28341 in reply to 26881

    Re: Carrying our Client AND Server side processing

    Colin,

    Please check the following example:

    http://richtextbox.com/cs/JavaScript-API.aspx

    This example is running version 6.0.




    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML