Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement