[Project_owners] mirror elements in XUL

Alex Vincent ajvincent at gmail.com
Tue Feb 3 23:36:46 PST 2009


The reason is that l can only have one parent node at a time.  What
you want, in a simple case, is this:

document.getElementById('bigbox').appendChild(l);
document.getElementById('bbigbox').appendChild(l.cloneNode(true));

If you want to *keep* the labels synchronized - that is, one node
updating means the other updates - that's a whole new ball o' wax.  I
wrote some code up for that a while ago, but it is probably overkill
for this.

Alex

On Tue, Feb 3, 2009 at 11:31 PM, joe ertaba <belaviyo at gmail.com> wrote:
> Hi,
>
> How is it possible to use same element in 2 different places in same window

-- 
"The first step in confirming there is a bug in someone else's work is
confirming there are no bugs in your own."
-- Alexander J. Vincent, June 30, 2001


More information about the Project_owners mailing list