Calling Terminology Browser from other Apps

Aus Termserver-CTS2
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Window (ZUL))
Zeile 3: Zeile 3:
 
This example requires a zul file and java file behind.
 
This example requires a zul file and java file behind.
 
==Window (ZUL)==
 
==Window (ZUL)==
 +
Insert the following code into your zul file inside the window tag.
 +
<source lang="xml">
 +
    <script type="text/javascript">
 +
      function receiveMessage(event)
 +
      {             
 +
                var widgetMainWindow = zk.Widget.$('$mainWindow');
 +
                var e                = new zk.Event(widgetMainWindow, "onSendBack", event.data);                               
 +
                zAu.send(e);                         
 +
      }
 +
     
 +
      window.addEventListener("message", receiveMessage, false);
 +
    </script>
 +
</source>
 +
 
==Code (java)==
 
==Code (java)==

Version vom 18. Dezember 2014, 10:56 Uhr

This site shows you how to call the Terminology Browser from another ZK application. It is possible to call it from any javascript app, therefore you have to change the code.

Call Terminology Browser from a ZK app

This example requires a zul file and java file behind.

Window (ZUL)

Insert the following code into your zul file inside the window tag.

    <script type="text/javascript">
      function receiveMessage(event)
      {               
                var widgetMainWindow = zk.Widget.$('$mainWindow');
                var e                = new zk.Event(widgetMainWindow, "onSendBack", event.data);                                
                zAu.send(e);                          
      }
 
      window.addEventListener("message", receiveMessage, false);
    </script>

Code (java)

Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Werkzeuge