Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web browser control and context menu
Message
De
03/06/2007 20:55:26
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01228919
Message ID:
01230117
Vues:
25
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform