On Nov 15, 2005, at 8:32 AM, [EMAIL PROTECTED] wrote:
It seems I must have a misunderstanding of how the DOM functions work.
I thought that a reference to a spawned window would give you
access to
the same method and properties that are available locally.
That is that if I can do getElementById('string') inside a page then I
could also do
myChild.document.getElementById('string') from the parent that spawned
it.
However, if I do
var chartWindow = window.open("displayChart", sortedby+category,
"status,menubar");
alert(chartWindow.document.getElementById('rounded'));
This is null, although
alert(chartWindow.document.body);
does return an HTMLBodyElement.
Am I totally off track? Is it not even possible to do what I am trying
to do?
You're probably not waiting until the DOM of the child window is
loaded or something.
Like I tell everyone else, if you post a reproducible example, you're
a lot more likely to get a good answer.
-bob