Perhaps I misunderstand what withWindow and withDocument do.
What I want to do is set a dom object in a spawned window.
I have :
var chartWindow = window.open("displayChart", sortedby+category,
"status,menubar");
Now in this window getElement('chartData') returns an HTML element.
But from the parent :
withDocument(chartWindow.document, function() {
alert(getElement('chartData'));
});
returns null.
I thought that these should both be ways of doing the same thing, one
from inside, one from outside, but that doesn't seem to be the case.
Is this how it should work and I am referencing it wrong somehow, or am
I misunderstanding how it should work?
Thanks again ...
Paul