Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get an object via ID from browser control?
Message
 
 
To
26/02/2007 16:32:07
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
Miscellaneous
Thread ID:
01198965
Message ID:
01198989
Views:
14
>>>I have a bunch of objects in a browser control on a form. I know their IDs. I've tried this:
>>>
>>>
	loDoc=loBrowser.object.document
>>>	loIEctl=lodoc.getElementById(lcKey)
>>>
>>>
>>>Whatever I do, loIeCtl is null. I've tried loDoc.all(lcKey), even
>>>
loall=lodoc.all
>>>loiectl=loall.item(lckey)
>>>but it's still null.
>>>
>>>In .beforenavigate2() I'm catching an ID of an object in the URL, and it just works from there. Also tried without the .object. infix, still null.
>>>
>>>Anyone got a clue?
>>
>>I don't have a clue, but check http://forum.foxclub.ru/read.php?29,243904,243907#msg-243907
>
>I'm already doing that, and for some reason it doesn't work - it's the same .getElementById() which works when called from browser's own events, but not from this.

What exactly is the problem again?

BTW, while I was trying to google it, I found an interesting link
http://forum.foxclub.ru/read.php?29,243904,243907#msg-243907
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform