OnLoad

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  User Reference > Objects > AuthenticView > Events >

OnLoad

Event: OnLoad ()

 

Description: OnLoad can be used e.g. to restrict some AuthenticView functionality, as shown in the example below:

 

function On_AuthenticLoad(  )

{

       // We are disabling all entry helpers in order to prevent user from manipulating XML tree

       AuthenticView.DisableElementEntryHelper();

       AuthenticView.DisableAttributeEntryHelper();

       

       // We are also disabling the markup buttons for the same purpose

       AuthenticView.SetToolbarButtonState( 'AuthenticMarkupSmall', authenticToolbarButtonDisabled );

       AuthenticView.SetToolbarButtonState( 'AuthenticMarkupLarge', authenticToolbarButtonDisabled );

       AuthenticView.SetToolbarButtonState( 'AuthenticMarkupMixed', authenticToolbarButtonDisabled );

}

 

In the example the status of the Markup Small, Markup Large, Markup Mixed toolbar buttons are manipulated with the help of button identifiers. See complete list.

 


© 2019 Altova GmbH