Executing a button event on the cute editor form

  •  12-18-2006, 11:27 AM

    Executing a button event on the cute editor form

    I know how to capture the 'Save' button event in my code behind page.  What I want to do is to be able to fire the Save button's click event using JavaScript on the client side.  I have a timeout JavaScript function that runs every 5min.  I want it to execute (fire) the Save button's click event so that it posts back with the proper arguments.  I actually want to be able to do this with any button in the future too.
     
    I tried this and it didn't work...
    function SaveForm(EID){
    var editor1 = document.getElementById(EID);
    editor1.Save.click();
    }
     
    I tried this and it didn't work...
    function SaveForm(EID){
    var editor1 = document.getElementById(EID);
    editor1.Save.ExecCommand("Save");
    }
     
    I'm out of ideas.  Does anyone have any other examples that might work for me?  I realize I could hard code a URL with postback info, but I don't think that would be a good long-term solution.  Thanks in advance for your help.
View Complete Thread