DNN Javascript event for save button

Last post 11-13-2006, 3:27 PM by amek. 3 replies.
Sort Posts: Previous Next
  •  11-13-2006, 2:28 PM 24281

    DNN Javascript event for save button

    I would like to listen to the save event in DNN-module "Html/Text" on the client side so it will click the "Update"-button directly.
    My only concern now is that I just can´t get the "Save" button to show in the toolbar! It is disabled by default but not in the Full.config file!?
    Any ideas, anyone, please!

    Regards, Andreas Ek
    Filed under:
  •  11-13-2006, 2:55 PM 24282 in reply to 24281

    Re: DNN Javascript event for save button

    amek,
     
    Please try the following solution:
     
    Open your web.config file in the cute editor section, find the following code:
     
    Admin_DisableItemList = ""
    Registered_DisableItemList = ""
     
    and change it to:
     
    Admin_DisableItemList = "Hello"
    Registered_DisableItemList = "Hello"
     
    Keep me posted
     
     

    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

  •  11-13-2006, 3:05 PM 24283 in reply to 24282

    Re: DNN Javascript event for save button

    Yes, this works! Thank u very much for your help!
     
    Why just "Hello"???

    Regards, Andreas Ek
  •  11-13-2006, 3:27 PM 24284 in reply to 24283

    Re: DNN Javascript event for save button

    Using this code-snip in the TextEditor.ascx but fails to connect it to the event...
     
    <script language="JavaScript" type="text/javascript" >
     function HandleEditorCommand(editor)
     {
      if(event.command.toLowerCase()=='help')
      {
       alert("You click the help button!");
       window.open("http://www.asp.net/");
       
       //notice the CuteEditor ignore this .
       event.returnValue=false;
      }
      if(event.command=='PostBack'&&event.commandvalue=='Save')
      {
       alert("The Save Command Captured by the JavaScript function : HandleEditorCommand");
        
       //notice the CuteEditor ignore this .
       event.returnValue=false;
      }
     }
    </script>

    Regards, Andreas Ek
View as RSS news feed in XML