[Project_owners] Have some problem with changing listbox label.

mwclee at charter.net mwclee at charter.net
Thu Jul 5 12:27:22 PDT 2007


Please stop sending these messages to our e-mail address.  We do not wish to be on a members list.

Danny and Lee Moretz

---- eric.jung at yahoo.com wrote: 
> You are right, it does not work. I don't know why, but I never use <listbox/> because <tree/> does the same thing and more. If you use <tree/> you won't have this problem.
> 
> 
> 
> ----- Original Message ----
> From: joe ertaba <belaviyo at gmail.com>
> To: Mozdev Project Owners List <project_owners at mozdev.org>
> Sent: Thursday, July 5, 2007 8:44:30 AM
> Subject: Re: [Project_owners] Have some problem with changing listbox label.
> 
> Hi eric
> 
> i do this by my self before sending this mail. but seems not works.
> 
> 
> On 7/5/07, eric.jung at yahoo.com
>  <eric.jung at yahoo.com> 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 <belaviyo at gmail.com>
> To: Mozdev Project Owners List <
> project_owners at 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 at mozdev.org
> 
> http://mozdev.org/mailman/listinfo/project_owners
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> 
> http://mozdev.org/mailman/listinfo/project_owners
> 
> 
> 
> 
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
> 
> 
> 
> 



More information about the Project_owners mailing list