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";
 },

_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to