Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browser Control
Message
De
26/11/2002 09:35:36
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00726658
Message ID:
00726957
Vues:
26
Hi David,

I was wondering if you, or anyone else following this thread, can provide further assistance with the Web browser control. I apologize for the lengthy message that follows but I feel that it is necessary to describe the issue.

I have the web browser control on a VFP7 form and I Navigate2 my HTML document then wait for the user to interact with it. They can enter data using textboxes, dropdown lists, checkboxes, etc. then select a "Next" button. I lead them thru a series of steps/pages (inductive user interface?) and I can trap the "Next" request and navigate to the appropriate HTML document. I repeat these steps until a final HTML page which has a "Proceed" button instead of a "Next" button.

Once they select "Proceed" I have a method (NumberCrunch) that is supposed to do some analysis of the data they entered. I have found that I can call my VFP NumberCrunch method by checking if the url parameter of the browser control's DocumentComplete event is the final HTML page. If it is, I instantiate an analysis custom object and call the NumberCrunch method. During this process (which can be lengthy) I want to provide some feedback to indicate progress is being made and that the computer is not frozen. As such, I placed an animated GIF (spinning logo) on my final HTML page that is supposed to show this. The problem is, the GIF shows but does not animate until the NumberCrunch method is complete! Kinda defeats the purpose :(

Do you know how to make this work as I expect? I've tried placing a DOEVENTS within my NumberCrunch method but it doesn't help. I get the feeling that the web browser control needs to finish whatever it is supposed to do in the DocumentComplete() event before it renders the page completely. If so, what event would I trap to then call my NumberCrunch method?

TIA

Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform