How to combine jquery with another js Script

How to combine jquery with another js Script

Hi,

I (more or less)  ok with JQuery, but now, I have a project, here I need to work with another Script, called MTS3Interface.js. Maybe someone knows, that this is needed to work with the viewpoint media player to show 3D Object on a website.

The objects can be influenced by javascript and as jQuery offers a wide and great range of functions, I want to combine both.

On my web page, I am calling the following:

  1. <script type="text/javascript" src="js/actions.js"></script>
  2. <script language="javascript" src="js/MTS3Interface.js"></script>
  3. <script language="javascript">
  4.     var vmp;
  5.     vmp = new MTSPlugin( 'main.mtx', '90%', '100%', 'BroadcastKey.mtx', 'simple', ''); 
  6. </script>


Inside my actions.js I can now call certain functions, such as:

  1. function whatever(){
  2.     vmp.SetProperty(); 
  3.     vmp.GetProperty();
  4. }
etc.pp.

So my question now, how can I use jquery inside this action.js within my whatever function?

For example to do something like this:

  1. var x = $("#field1").val(); 
  2. vmp.SetProperty('item1', x); 
  3. alert( vmp.GetProperty('item1'));

I am really looking forward for your help!!
Thanks!
Heohni