R.S.Galloway wrote:
>
> Ok, now you've lost me. I'll have to do some research to understand
> what you mean by "adding the PWC to the DOM of the parent". Is that
> something I can do from the iframe? I suspect it's not. As I said, I
> don't have the ability to create the original parent document, only
> edit it from the iframe using document.write and the like.

if you can do document.write on the parent document (parent window's 
document) then you can probably access all its objects. So, just get to 
the object where you want to inject your PWC and just something like

    new Window('newid', {parent: 
window.parent.document.getElementById('id-of-container-element')... 
other options here...})

if you do not have access to the parent window, or you cannot use a 
container element, you can use the body as well, I believe:

    new Window('newid', {parent: window.parent.document.body ... other 
options here...})

but please, stay far far away from document.write. It is evil.

Finally, think about upgrading to version 1.3, which fixes several bugs 
when the parent is not the current body.

Cheers,
-- Abel Braaksma




_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to