Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with the internet browser in VFP
Message
De
12/06/2010 08:14:25
 
 
À
12/06/2010 00:26:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01468348
Message ID:
01468665
Vues:
63
Absolutely right Thomas and thank you for the suggestion......

I've done some web page stuff and have fooled around a bit with ajax but not enough to realize that there's a timing component to dealing with HTTP refreshes and page loads....... ie if it's not there on the page then you certainly can't change it's value. So with Thomas's suggestion I did the following and it works perfectly.


Put a Microsoft Web Browser activeX control on a form.

Added a property to the form to catch in between refreshes.

In the init of the form I called the Navigate method and fed it the url I wanted.

In DocumentComplete method I added the following code.
if upper(alltrim(url))<>"JAVASCRIPT:FALSE;" then


	if thisform.document_refreshed=.f. then

		thisform.olecontrol1.Document.getElementById('fpcFindAnAddress:reverseSearch:postalCode').value="some postal"
		thisform.olecontrol1.Document.getElementById('fpcFindAnAddress:reverseSearch:j_id88').click()

		thisform.document_refreshed=.t.

	endif


endif
When the javacript click event fires on the web page this routine fires again so I wanted to prevent resetting the postal code and it works great.



thanks for all the suggestions,

Don
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform