Inconsistency while invoking JavaScript Method in Internet Explorer ActiveX control
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu ActiveX finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!