Connect to Custom Events

www.altova.com Imprimer cette rubrique Page précédente Un niveau supérieur Page suivante

Accueil >  Programmers' Reference > ActiveX Integration > ActiveX Integration Examples > HTML > HTML Integration at Application Level >

Connect to Custom Events

The example implements two event callbacks for XMLSpyControl custom events to show the principle:

 

<!-- ----------------------------------------------------------- -->
<!--  custom event 'OnDocumentOpened" of XMLSpyControl object  -->
<SCRIPT FOR="objXMLSpyControl" event="OnDocumentOpened( objDocument )" LANGUAGE="javascript">
  // alert("Document '" + objDocument.Name + "' opend!");
</SCRIPT>
 
<!-- ----------------------------------------------------------- -->
<!--  custom event 'OnDocumentClosed" of XMLSpyControl object  -->
<SCRIPT FOR="objXMLSpyControl" event="OnDocumentClosed( objDocument )" LANGUAGE="javascript">
  // alert("Document '" + objDocument.Name + "' closed!");
</SCRIPT>

 

 


© 2018 Altova GmbH