<object name="pcm" width="0" height="0"classid="clsid:48A185F1-FFDB-11D3-80E3-00C04F176153"></object><script language="JavaScript">    var val,val2,error,a;  succ = pcm.ReadVariable("encoder_ssi",val,val2,error);  if(succ)  {   document.write(succ);    document.write(val);  }  else  {    document.write(succ);    document.write(error);  } </script>Hi.
Did you solve this problem? I am trying read variable from my aplication, VBS works good, I can read variables without problems, but when I use JavaScript, it do same thing like you - variable not fill...
Can you help me where is the problem
Thanks
I found a solution to this problem. Seems like we need to reach into the ReadVariable function and take one of its local variables:
succ = pcm.ReadVariable("encoder_ssi");
val = pcm.LastVariable_vValue;
The value of encoder_ssi will be in val