Inconsistency while invoking JavaScript Method in Internet Explorer ActiveX control
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I am working on interfacing MATLAB with Google Earth Plug-in. The interface uses Internet Explorer ActiveX control as host for the Google Earth Plug-in as the plug-in uses JavaScript.
In a simple demo below (testJS.html), I successfully imitate a straight movement in Google Earth using pre-defined coordinates. (Works only on Firefox and IE, although on IE the speed is a little bit fast).
Using the same coordinates, I invoked the JavaScript methods from MATLAB script. Instead of straight movement, what I get is zig-zag movement. At first, I thought the problem was the decimal places of the input, as Google Earth supports only up to 6 decimal places. But, reducing the decimal places also brought no joy.
Does anyone have any idea what wrong is?
Thanks.
Wan.
p.s: below is the files. testJS.html is a JavaScript demo. TestOhneSimulink.m is the MATLAB code. pluginhost3.html is the host html document of the plugin.
or this if above does not work
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 ActiveX 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!