Altova Authentic 2024 Browser Edition

The SCRIPT elements define the event handlers and subroutines that can be called from within the HTML file.

 

Here is a sample of a script for handling an event:

 

<SCRIPT LANGUAGE="javascript" FOR=objPlugIn EVENT="ControlInitialized">

         objPlugIn.SchemaLoadObject.URL = "http://yourserver/OrgChart.xsd"

         objPlugIn.XMLDataLoadObject.URL = "http://yourserver/OrgChart.xml"

         objPlugIn.DesignDataLoadObject.URL = "http://yourserver/OrgChart.sps"

         objPlugIn.StartEditing

</SCRIPT>

 

 

Here is a sample of a script that contains subroutines:

 

<SCRIPT ID=clientEventHandlers LANGUAGE=vbscript>

 Sub BtnOnClick

         objPlugIn.SchemaLoadObject.URL = "http://yourserver/OrgChart.xsd"

    objPlugIn.XMLDataLoadObject.URL = "http://yourserver/OrgChart.xml"

    objPlugIn.DesignDataLoadObject.URL = "http://yourserver/OrgChart.sps"

    objPlugIn.StartEditing

 End Sub

  Sub OnClickFind

         objPlugIn.FindDialog

  End Sub

  Sub BtnOnTestProp

         If objPlugIn.IsRowInsertEnabled Then

                 msgbox "true"

         Else

                 msgbox "false"

         End If

  End Sub

</SCRIPT>

 

 

Scripting languages

The Authentic Browser Plug-in has been tested with JavaScript and VBScript.

 

Handling events

The value of the ID attribute of the OBJECT element in the HTML body is specified as the value of the FOR attribute. Authentic Browser Plug-in objects that are called must have a name that is this value. For a list of events see also Events: Reference.

 

Subroutines

Subroutines can be created for any event that you wish to define in the HTML file. The Authentic Browser Plug-in object name must be the same as the value of the ID attribute of the OBJECT element in the HTML body. In the example above, the prefix is objPlugIn, which must be the value of the ID attribute of the OBJECT element. The methods, properties, and sub-objects available in the Authentic Browser Plug-in are described in the reference section of this documentation.

 

© 2018-2024 Altova GmbH