My preliminary code to do this is something like this.
$j(document).ready(function() {
var w = window.open(childPage);
$j(w.document).ready(function() {
$j('#DestinationElement', w.document).html($j('#SourceElement').html());
});
});
However, this only works for me when I set a breakpoint on the html injection statement, meaning that it's not really waiting for the child window to be ready before doing the injection.
Can somebody fix this? Thanks.