Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 To: Mike Gagnon
  Where is Mike Gagnon?
 Pointe Claire
 Canada
 Mike Gagnon
 Tags
Subject: RE: save URL
Thread ID: 104571 Message ID: 104621 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Win32API programming
Date: Friday, August 18, 2006 2:18:11 PM         
   


> > Thanks - but not to my satisfaction. i. the routing is in English even if I start in Holland and stay in Holland and ii. it does not seem to be as acurate as the MS. I figure I will have to make an other aproach to save the departing point.
> > Koen

>
> I just meant to use the code as an example. The principle is the same, just apply it to your site.
>
>
>
> > > From the message 102431, ShellExecute is being used, and don't think it is possible using that method since there is no "hook" to internet explorer. But if you automate Internet explorer instead to can. Use the following example and navigate to another page, and the oBrowser.LocationUrl contains the current url
> > >
> > >
> > > tcUrl="http://www.mapquest.com/"
> > > PUBLIC oBrowser
> > > oBrowser = CREATEOBJECT("internetexplorer.application")
> > > oBrowser.navigate(tcURL)
> > > oBrowser.visible = .t.
> > >
> > > P.S. There is an example (faq184-4666) on Tek-Tips I wrote how to automate Mapquest.
> > >
> > > > Hi,
> > > >
> > > > I have implented the MS routeplannner (thanks to Hans de Groot message 102431). Now I would like to save the changed URL the user typed in when e.g. changing the starting point. Any idea how to save the URL in my app after closing the Internet application and returning to the VFP app?
> > > > Thanks

> > >
> > >
> > >
> > > Mike Gagnon
> > >

> >
> > Mike,
> >
>
>
>
>
> Mike Gagnon
>

Mike,

O.K. misunderstood.
Now changed my coding to my webpage, oBrowser.LocationURL starts indeed with the starting URL and I can even see in the debugger it will change if I rederect to an other starting point, however unfortunately this new value cannot be saved in a FoxPro variable for further processing. In the debugger the public variable lcNewUrl = "" and aftre closing down IE .
Since I see the oBrowser.LocationURL in the debugger with a new value, I have a strong feeling I am doing something wrong but cannot get my hands on it.

Koen

ENTIRE THREAD

save URL Posted by Koen Piller @ 8/17/2006 6:11:00 PM
RE: save URL Posted by Mike Gagnon @ 8/17/2006 7:36:47 PM
RE: save URL Posted by Koen Piller @ 8/17/2006 10:07:25 PM
RE: save URL Posted by Mike Gagnon @ 8/18/2006 12:00:16 PM
RE: save URL Posted by Koen Piller @ 8/18/2006 2:18:11 PM
RE: save URL Posted by Mike Gagnon @ 8/19/2006 12:55:36 PM
RE: save URL Posted by Koen Piller @ 8/19/2006 6:12:19 PM
RE: save URL Posted by Mike Gagnon @ 8/19/2006 6:33:36 PM
RE: save URL Posted by Koen Piller @ 8/20/2006 1:03:13 AM
RE: save URL Posted by Borislav Borissov @ 8/20/2006 7:56:46 AM
RE: save URL Posted by Koen Piller @ 8/20/2006 8:43:32 AM
RE: save URL Posted by Borislav Borissov @ 8/20/2006 12:18:45 PM
RE: save URL Posted by Koen Piller @ 8/20/2006 1:14:42 PM
RE: save URL Posted by Borislav Borissov @ 8/20/2006 2:50:33 PM
RE: save URL Posted by Koen Piller @ 8/20/2006 3:53:04 PM
RE: save URL Posted by Borislav Borissov @ 8/20/2006 5:40:43 PM
RE: save URL Posted by Koen Piller @ 8/20/2006 5:58:09 PM
RE: save URL Posted by Borislav Borissov @ 8/20/2006 6:07:20 PM
RE: save URL Posted by Koen Piller @ 8/20/2006 6:45:10 PM
RE: save URL Posted by Borislav Borissov @ 8/20/2006 6:53:50 PM