Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Document.getElementByID returning NULL
Message
From
21/11/2018 13:44:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Document.getElementByID returning NULL
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01663647
Message ID:
01663647
Views:
57
Hi All,

Even though I have done this a hundred times before, it seems to always comes back to bite me. I have HTML page with a tag with the id='count'. when I load it into the WebBrowser control and attempt to reference the tag the returned reference is NULL.

HTML code
... <td id='count'>123</td>
VFP code
loID = loForm.IE.document.getElementById( "count" )
? loID        && displays .NULL.
I can see it in the Source View, and even in the browser Debug Console, but can not get the object reference via code in VFP. Is there a secret I am missing?
Greg Reichert
Next
Reply
Map
View

Click here to load this message in the networking platform