On Wed, Jul 30, 2014 at 3:27 PM, Rafael Copquin <[email protected]> wrote:
> 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) > -------------- You can look under this registry key and find out which browser is being used by the current user: HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice\Progid It is a REG_SZ value and will be one of these for the major three browsers currently available: FirefoxURL ChromeHTML IE.HTTP In IE http://www.bing.com/maps/default.aspx?q=map+60industrial+park%2c+oakland%2c+tn%2c38160 %2c = , I don't have FF loaded. -- Stephen Russell Sr. Analyst Ring Container Technology Oakland TN 901.246-0159 cell --- 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/CAJidMY+iHRSfGPQn2BZ9nPja_p=lremnauh5ki2qi7q1keq...@mail.gmail.com ** 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.

