Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web browser control and context menu
Message
From
29/05/2007 09:19:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01228919
Message ID:
01229026
Views:
24
>> Does anyone know if it is possible to implement a custom VFP
>> context/shortcut menu on the web browser control hosted in a VFP form?
>
>I posted a more complex query a couple of months ago, having solved the one above in the way Dragan describes, as well as the next step which is getting the browser to talk to elements in an HTML document. My question was how to get the browser to talk back to and manipulate Javascript and/or SVG elements in a SVG document.
>
>I haven't cracked this one yet. A demo on the web shows how to create an event listener to do it in C# and I was halfway through trying it before I got distracted.
>
>Anyway, various things like 'getElementById', 'getSVGDocument' and 'InvokeMember' have not worked yet from VFP9. Anyone know of working examples on the web?

I didn't try the latter two, but getElementById() works for me:
loBrowser=THIS.oBrowser
	loDoc=loBrowser.DOCUMENT
	loIEctl=loDoc.getElementById(lcKey)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform