Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web browser control and context menu
Message
From
03/06/2007 20:55:26
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:
01230117
Views:
32
>>I didn't try the latter two, but getElementById() works for me:
>
>
loBrowser=THIS.oBrowser
>	loDoc=loBrowser.DOCUMENT
>	loIEctl=loDoc.getElementById(lcKey)
>
>
>Dragan
>
>Easy enough for HTML, but can you retrieve elements from an SVG doc? This is where we stumble, as I understand it.

Haven't tried with SVG, as long as it's not widely supported (maybe it is now, didn't check). My rule of thumb is that the debugger won't show you the object model, but intellisense will - and only one level deep, sometimes two. That's why I have loDoc, because the moment I get an object reference for it, something in VFP reads its interface and I can suspend, then try out "loDoc." in command window and try this and that.

Another useful tool is DOM inspector in Mozilla. It shows you exactly what you need, you only have to get used to its hierarchical layout.

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