[Project_owners] Javascript!
Roberto Bouzout (tito)
zilla at nxuy.com
Sat Oct 25 08:30:25 PDT 2008
> var p = {
> element1 : document.getElementById('some id') ,
> ....
>
> MyFuction : function(){
>
> element1.value="some text";
> },
>
>
> }
Properties of "p" from the "inside" are accessed by "this" keyword
I think that this should work, but maybe there is another problem such document.getElementById('some id') is not defined when "p" is initialized.
MyFuction : function(){
this.element1.value="some text";
},
More information about the Project_owners
mailing list