Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web browser control problem
Message
 
 
To
23/05/2002 15:56:08
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00660410
Message ID:
00660748
Views:
18
What is the error message? Have you put NODEFAULT in the browser control Refresh? That is the only command I have in that method.

>>I think you can not reference the document objects until the document completely loads. I would think putting that code in the DocumentComplete event would work.
>
>I think that you are beginning to understood my problem. Yes, my Home button is an HTML button in the browser control's document and not a VFP button sitting on the VFP form. As I've said before, the latter is easy to enable/disable:)
>
>I believe you are correct in your statements above, however, I get the problem from both the DocumentComplete and NavigateComplete2 events. The last event would seem to be the ideal one for me to place the code since according to the description of the event in the properties page it is "Fired when the document being navigated to becomes visible and enters the navigation stack." This to me is saying it is "ready" and nothing else is to be shown.
>
>Once again, if I put any VFP syntax in the NavigateComplete2 event (or DocumentComplete) that tries to reference an object in the browser's document, an error occurs. For example if in the NavigateComplete2 event I put "this.document.frame(0).home.disabled=.T." the error pops up. But, like I said before, if I then ignore the error, the program continues and the Home button IS disabled!. How does one explain this?
>
>If I can find a way to dismiss the error I think that I'd be ok.
>
>Mike.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform