document.getElementById return null
734409Apr 20 2010 — edited Apr 21 2010I'm trying to integrate with a Data Visualisation Tool called AnyChart (used in APEX).
I'm required it to send XML to a provided JavaScript function. I'm also required to give it the element or the ID of the element where it would create the flash component for the chart. The problem is that document.getElementById which is used in the function, returns null. I did a really simple example with the ID being exactly as shown on the generated HTML and that didn't manage to find the element.
Is there something I need to do to get document.getElementById to behave properly?