[Project_owners] mirror elements in XUL
joe ertaba
belaviyo at gmail.com
Tue Feb 3 23:31:48 PST 2009
Hi,
How is it possible to use same element in 2 different places in same window
What I want is a label be a mirror of another label,...
here is sample code but it doesn't work
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="yourwindow" xmlns="
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload = "
var l = document.createElement('label');
l.setAttribute('value','mirror text');
document.getElementById('bigbox').appendChild(l);
document.getElementById('bbigbox').appendChild(l);
">
<box id="bigbox">
<label value="1"/>
</box>
<box id="bbigbox">
<label value="2"/>
</box>
</window>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20090204/91925e41/attachment.html>
More information about the Project_owners
mailing list