Perhaps I did not explain myself correctly.

I have this form that uses the Microsoft Web Browser control.
I assign the address I want to show thus:

Local cAddress

cAddress = Alltrim(thisform.text1.Value) && in this textbox the user enters the STREET ADDRESS

thisform.oWeb.navigate( "http://maps.google.com/maps?q="+Chrtran(Alltrim(cAddress)," ","+")) && oWeb is the name I gave to the object

It will show the map inside the form. But this is only on Google Chrome (which I have in my machine) and it will show the street address correctly However if the user enters a URL (i.e. www.microsoft.com) it will still show a map, it will not go to the web page, but will show a dialog asking whether you want to see the web page. When you click on the link it will show the page but immediately a series of dialogs saying that there a script errors in the page appears and the whole thing gets screwed up (excuse my Spanish please)

I also have FireFox and Internet Explorer (Windows 7 Ultimate), but the code I've got to launch the map is no good for those two browsers

I need:

 * A way for VFP to identify which is the default browser for the
   particular machine
 * The code that will launch the map in FireFox or Internet Explorer
 * The code that will go to the URL (show the web page)



El 30/07/2014 17:01, Stephen Russell escribió:
On Wed, Jul 30, 2014 at 2:29 PM, Rafael Copquin <[email protected]>
wrote:

Hi Stephen

I know that!

But I need a reliable code for each the most common (Chrome, IE,FireFox)

Where can I get the necessary info?
------------------


How about:

http://maps.google.com/?q=60 Industrial Park, Oakland, NT, 38160
<http://maps.google.com/?q=1200%20Pennsylvania%20Ave%20SE,%20Washington,%20District%20of%20Columbia,%2020003>








--- StripMime Report -- processed MIME parts ---
multipart/alternative
 text/plain (text body -- kept)
 text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to