Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Microsoft Web Browser Control - VFP

Status
Not open for further replies.

RTD78

Programmer
Nov 11, 2020
4
US
Greetings;

Up until now, I have not programmed in VFP using the Web Browser Control. So I have little experience with it and am learning on the fly. What I am creating is a map page of a specific area that will show points on the map indicating the location of client cars in the field. I am using Google Maps with an API key. I am able to create an html document for the map in my temp folder, then call it with Navigate2. Works great! The location of the cars appear at the lat/lng coordinates used at the time of the map init. The cars in the field are equipped with GPS devices and feed back their location every few seconds when they are in motion. When that happens, I need to refresh each cars point on the map reflecting the new lat/lng coordinates. What I would like to do is access the DOM to refresh the points on the map without having to get a new map from Google at .005 cents per refresh which will get costly for my customers over time. I believe that I will have to create a function in the html to do this. What I can't figure out is how to access that through the Web Browser Control. Any suggestions would be great. Thanks!

Ray
 
test_z00xph.jpg
I have done some work in Google Map and Bing Map in the past but more to show a shortest route with different waypoints for a delivery vehicle to stop and make a delivery. The question is why do you think you need to call the web service from google if you already have the map built as and HTML page. For example I had a list of 10 addresses to show on a map, and if one of these addresses needed to be change I would just rebuild the HTML page locally without to need to call the Google API again.
If you need help on this you can contact me at mike.gagnon[at]carvertechnologies.com, because it is difficult to explain on this site.



If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hi Mike,

Thanks for your response. Once I have the map built locally I do want to interact with it rather than making another API call. I will email you directly as I figured that it was much more involved than what can be explained on this thread.

Ray

Ray
 
Does anyone know how to use ALL the parameters in the navigate method of the web browser control in Visual Foxpro?
 
Does anyone know how to use ALL the parameters in the navigate method of the web browser control in Visual Foxpro?

You posted this question (and I answered it) in thread184-1807698. It is better to start a new thread when you have a new question, rather than tacking it on to the end of someone else's thread.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Hi Ray,

I stopped using the web browser control, too many errors in my case with “modern” websites.
I switched to Chrome. Unfortunately not in a VFP form, but at lease free of errors.

Regards, Gerrit
 
Hi Nigel,

Yes I tried all that, with the right registry settings. Nevertheless my customers had more and more problems using Google services.

Using Chrome for Google’s services will work in the long run.

I haven’t been able to try the Chromium option. Perhaps later.

Regards, Gerrit

 
The WebKit ActiveX control looks interesting: And it suuports all versions of VFP. It also has built-in H.264 / ACC Codec support and apparently uses ffmpeg...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top