05-11-2007 05:26 PM - edited 05-11-2007 05:26 PM
Message Edited by mnoone on 05-11-2007 05:32 PM
05-11-2007 11:48 PM
05-12-2007 12:07 AM - edited 05-12-2007 12:07 AM
Hi John - thanks for the reply - I appreciate you taking the time to help me.
First of all - I wasn't exactly sure what I was doing with the iwebbrowser2 ActiveX control. That part of the VI was very confusing for me, and I couldn't find much documentation regarding it. Essentially I hacked at it till I got it working, and left it there. Anyways, If there is a better way to do what I am doing I would love to hear more about it.
The sample project looks like a very interesting way to do get feedback. It's certainly a bit round about, but whatever gets the job done. I'll try implementing it as soon as I have time.
I am using the student version of 8.2, by the way.
I have attached my VI that I am using just in case.
-Michael
Message Edited by mnoone on 05-12-2007 12:07 AM
05-12-2007 12:39 PM
05-12-2007 12:57 PM
Hi - sorry I was unclear in my original post. Yes - the HTML page is pure javascript. None of the functions return anything yet because I haven't written the ones that will return anything. The VI is a control and monitor program for a mobile robot with an onboard GPS. The robot's position is being displayed on Google Maps. I want to be able to click on positions on the Google Maps page and have it tell the VI to send a command to the robot to go to that location. I think your method will work. I will have to check the page periodically (every tenth of a second or so) to check to see if a position has been clicked on, but that seems like it will be just fine.
I should mention - the reason I'm using the Mozilla ActiveX control is fairly simple. I started out using the Microsoft control, but for whatever reason it was throwing constant JavaScript errors at me. It was strange - Internet Explorer could display the page just fine, but the ActiveX control could not. Thus I switched to the Mozilla control, and every single problem that I was having went away.
Thanks for the help,
-Michael