Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Other Viewpoint Software    How to Send or get messages and data Between VETScript and JavaScript?

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Is is available to send or get messages and data between VETScript and JavaScript?

This message has been edited. Last edited by: HJ Chae,
 
Posts: 8 | Registered: May 15, 2005Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
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
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Thank you for your answer.Smile

But I want to know how to call some JavaScript Functions in HTML from VETScript.

Thanks,

HJ Chae
 
Posts: 8 | Registered: May 15, 2005Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
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
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of DavidR
Posted Hide Post
Anup rocks the world.
 
Posts: 308 | Location: Atlanta Georgia | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Other Viewpoint Software    How to Send or get messages and data Between VETScript and JavaScript?