Re: cliente-side dynamic XSLT transformation with javascript

"..tato.." <[email protected]>fotocontato
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
"Martin Honnen" <[email protected]> escreveu na mensagem 
news:[email protected]...
>
> I think you want
>
> while (target.hasChildNodes()) {
>   target.removeChild(target.lastChild);
> }
> target.appendChild(createdDocumentFragment);

there was an error in the code I provided, the right is:
var target = parent.frmBot.document.getElementById("display");
while (target.hasChildNodes())
 target.removeChild(target.childNodes[0]);

   target.appendChild(xmlNode);

with out brackets, the while clause complish the same as yours, except that 
it goes top down. But the problem arises when I try to get the 'target' from 
parent.framename.getElementById() instruction, returning null.
Is it legal to getElementById cross frame?
Browser reported some security violations that made me suppose it is not.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.