[Project_owners] XUL Q?

massey massey at stlouis-shopper.com
Wed Feb 7 12:37:43 PST 2007


Amin wrote:

> ok i don't mean that label doesn't have id, i want to set its value 
> using a function instead direct typing
>
> <label value="here!!!!!!!"   style="font-weight: Bold;   "  />
>
Lets say your label has an id <label id="myLabel" value="here!!!!!!" 
style =blah/>
then in code:
document.getElemenetById("myLabel").setAttribute("value", "Hi There!!!!!");

> <label value=MyFunction   style="font-weight: Bold;   "  />
>
>
> On 2/7/07, *Chris Neale* <cdn at mozdev.org <mailto:cdn at mozdev.org>> wrote:
>
>     On Wednesday 07 February 2007 15:34, Amin wrote:
>     > hello
>     >
>     > any body know how to replace "here!!!!!!!" with a function that
>     is defined
>     > in Update.js
>     >
>     > <script
>     >     type="application/x-javascript"
>     >     src="chrome://inbasicph/content/Update.js"
>     > />
>     >
>     > <label value="here!!!!!!!"   style="font-weight: Bold;   "  />
>
>     Would be much easier if <label/> had an id
>
>     although ...
>
>     you could probably search all label elements find the one(s) with
>     value
>     == 'here!!!!!!!' and then set value attribute to something else
>
>     --
>
>     cdn
>
>     --
>
>     feedback -at- mozdev -dot- org is for comments *not* about a
>     specific project
>
>     http://gifts-for-free.co.uk
>
>     Extensions for Mozilla-based Applications [ http://cdn.mozdev.org/ ]
>     _______________________________________________
>     Project_owners mailing list
>     Project_owners at mozdev.org <mailto: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