Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Browser Control Loosing URL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Web Browser Control Loosing URL
Divers
Thread ID:
00841966
Message ID:
00841966
Vues:
51
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
Fil
Voir

Click here to load this message in the networking platform