Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web browser control problem
Message
From
23/05/2002 14:35:33
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00660410
Message ID:
00660671
Views:
17
In case you haven't figured it, I'm a rookie "web developer" too.

I don't know if I understand you when you said that you cannot reference any "object" on the page after it is returned to the browser. I've been able to manipulate "objects" in the browser control as follows:

I put a VFP command button on the same form that also contains the browser control on it. The browser control is displaying the page that contains my Home button. If, in the click event of the VFP command button, I place "thisform.obrowser.document.frames(0).home.disabled = !thisform.obrowser.document.frames(0).home.disabled" I can see the Home button become enabled/disabled as expected! This works great.

My problem is that I have to make VFP issue the command to do the enabling/disabling of the Home button via the VFP command button. I can't find a way to automatically have the Home button enabled/disabled after navigating to the Home page. It wouldn't make sense for the end user to have to click a VFP form button to then refresh objects on the browser control's document.

I hope that some of this makes sense. And thanks again for your assistance with this problem.

Mike.


>
>The light is starting to come on. This is an HTML button object? Do you have something like < form action="" method="POST" > in the document? I am just starting developing Web apps, but if this is the case, you have to handle the enabling and disabling of the buttons when the web page is rendered by the server. Once the page is returned to the browser [in this case the browser control], you can not reference any "object" on the web page.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform