Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Browser Control Loosing URL
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Web Browser Control Loosing URL
Miscellaneous
Thread ID:
00841966
Message ID:
00841966
Views:
50
I have a web browser control in a form and navigate to a page on a third-party web site containing a "Continue" submit button. When I click the button in the web browser control or issue a document.forms(0).element(x).click() command, the new page loads but there is no URL value (it's blank) for any of the following requests:


FUNCTION NavigateComplete2
LPARAMETERS pdisp, url

wait window 'in navigatecomplete2, url is '+url
IF EMPTY(url)
url = this.Document.URL
ENDIF
wait window 'in navigatecomplete2, url is now '+url
IF EMPTY(url)
url = this.LocationURL()
ENDIF
wait window 'in navigatecomplete2, url is now '+url


Both commands return a blank string. But when I right-click and select "Properties" the window shows the URL. I just can't figure out how to get it from the web browser control.

I can get it for some pages but not this particular one. Anybody have any ideas on why the web control URL becomes blank or what HTML situations could cause this?
Next
Reply
Map
View

Click here to load this message in the networking platform