Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  VETScript    how to call VETScript function from javascript function
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
rik
Member
Posted
Hi,

How can I call a VETScript function from a javascript function?

I tried this way as a test but Frown not work

vmp.Execute( '<VETScript Script=\\"alert(20);\\"/>');


I need to call a vet script function and pass some parameter

like: myVetFunction( prm_1 , prm_2 );


can I do it?

thank you in advance
 
Posts: 34 | Registered: March 17, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
All you need to do is to call vmp.Execute with the function VETScript( script to execute ).

Ex: vmp.Execute(‘VETScript( script )’);
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  VETScript    how to call VETScript function from javascript function