Hi eric

i do this by my self before sending this mail. but seems not works.


On 7/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

There's more than one way to do it, but the easiest:

1. Add an id attribute to the listcell:
<listcell id="changeme" label="Not Set"/>

2. Add onclick handler to <label/>:
<label id="MyId" value="Click here to edit font" onclick="
document.getElementById("changeme").label='something'"/>

----- Original Message ----
From: joe ertaba <[EMAIL PROTECTED]>
To: Mozdev Project Owners List <project_owners@mozdev.org>
Sent: Thursday, July 5, 2007 4:19:11 AM
Subject: [Project_owners] Have some problem with changing listbox label.

Hi

any body can help me to change text of first line in below list "Not Set"
to "something" when user click on label with id="MyId"

<?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";>
<script type="text/javascript">
<![CDATA[
// put some js code here
]]>
</script>
<label id="MyId" value="Click Here to Edit font"/>


                <listbox>
                        <listhead >
                            <listheader label="URL"/>
                            <listheader label="Font Size"/>
                        </listhead>

                        <listcols>
                                <listcol/>
                            <listcol flex="1"/>
                        </listcols>
                        <listitem >
                            http://......1"/>
                            <listcell  label="Not Set"/>
                        </listitem>
                        <listitem >
                            http://......2"/>
                            <listcell label="Not Set"/>
                        </listitem>

                </listbox>
</window>
_______________________________________________
Project_owners mailing list
Project_owners@mozdev.org
http://mozdev.org/mailman/listinfo/project_owners


_______________________________________________
Project_owners mailing list
Project_owners@mozdev.org
http://mozdev.org/mailman/listinfo/project_owners


_______________________________________________
Project_owners mailing list
Project_owners@mozdev.org
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to