General information
Category:
ActiveX controls in VFP
Title:
Web Browser Control Loosing URL
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only