Link Search Menu Expand Document

Root.PostShellEvent Property

Explanation Sends an event to IEConnect with the same ID as the ShellId property.
Events can be retrieved as BizEvent events on HTML pages with IEConnect embedded and processed with JavaScript, etc.
If you set the UserValue property of IEConnect, you can receive it as the return value of PostShellEvent.

Not supported in Mobile, AI
Call format var ret = //.PostShellEvent( str )
Return value Returns the string set in the IEConnect UserValue property.
Arguments String str Any string that accompanies BizEvent.
It can be received by a script in HTML.
Exception PKG-2 There is no object to send shell events to
PKG-3 No object with ID ='xx'
PKG-4 Failed to send event'% s'to object with ID ='xx'
Example of use
<Biz/Browser>

//.ShellId = "Biz3";
var retval = //.PostShellEvent("from Biz/Browser");
print(retval, "\n");

BizEvent events can be received in a script in HTML as follows:

<Internet Explorer>

<OBJECT ID="BizIEServer" CLASSID="CLSID:16137039-D27E-4BB8-9B02-B20C06B8DCBF">
<SCRIPT LANGUAGE="JavaScript">
BizIEServer.ServerId = "Biz3";
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" FOR="BizIEServer" EVENT="BizEvent(value)">
    alert(value);
    BizIEServer.UserValue = "from JavaScript";
</SCRIPT>
    
Related item ShellId method