Viewpoint Forums
Viewpoint Forums
Other Viewpoint Software
How to Send or get messages and data Between VETScript and JavaScript?|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Is is available to send or get messages and data between VETScript and JavaScript?
This message has been edited. Last edited by: HJ Chae, |
||
|
|
EnIgMaTiCScOrPioN Member |
Hi Bud !!
The Release notes for the latest VMP 3.3.0.29 are on the Develper Central. They do have the VET Script syntax and usage details. It would be great if you can download and refer this PDF. Cheers, Anup |
|||
|
|
Member |
Thank you for your answer.
But I want to know how to call some JavaScript Functions in HTML from VETScript. Thanks, HJ Chae |
|||
|
|
EnIgMaTiCScOrPioN Member |
Hi Chae !!
Start by declaring the usage of the script interpreter by declaring a MTSTimeElem with Type="VETScriptInterpreter". All you need to do to use the Script interpreter in MTX is to set up an action Type="VETScript" and specify the script as a XML child node of this action. Also, as in HTML, you can put the script in a XML comment so you don't need to use escape characters. For example:
<MTSAction Type="VETScript" Name="chae">
<!--
alert('I am working on ' + nameVar);
-->
</MTSAction>
<MTSInteractor>
<MTSHandle Event="KeyDown" Action="chae" nameVar="Viewpoint" />
</MTSInteractor>
<!—declare usage of script interpreter -->
<MTSTimeElem Type="VETScriptInterpreter" />
For more details on the same, kindly download the following PDF from http://developer.viewpoint.com/dc/docs/release_notes/vmp_win_330_relnotes.pdf There is a section called "MTX Usage" in this PDF. Hope this helps. Cheers, Anup |
|||
|
|
Member |
Anup rocks the world.
|
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
Other Viewpoint Software
How to Send or get messages and data Between VETScript and JavaScript?
