Hello all.
I've a custom a JS function "showDialog" from external JS file:
JS code:
function showDialog(caption, text) {
//there show popup alert
...
ASLEvent("SendDialogResult", res);
}
Function assigned to Verb "touch".
ASLX code:
<object name="object1">
<inherit name="editor_object" />
<displayverbs>touch; aftertouch</displayverbs>
....
<touch type="script">
request (RunScript, "showDialog('" + object1.alias + "','there my text')")
</touch>
<aftertouch type="script">
if (DialogResult.value > 0) {
SetObjectFlagOn (object1, "answered")
}
</aftertouch>
</object>
...
<object name="DialogResult">
....
<value type="int">0</value>
</object>
...
<function name="SendDialogResult" parameters="data">
DialogResult.value = data
***** what there invoke Verb "aftertouch" of object "object1"? ****
</function>
After calling this function popup javascript alert displayed and waiting user action. After closing dialog by user js code from function showDialog calls function ASLEvent and function SendDialogResult has been invoked. Next I want to
simulate the verb "aftertouch" of the object "object1". How can this be done?Thanks.