[Project_owners] Javascript!

joe ertaba belaviyo at gmail.com
Sat Oct 25 06:58:00 PDT 2008


Hi

I have a var in JS

var p = {
element1,
....
}

I want to set element1 to document.getElementById('some id'), some thing
like this :

var p = {
element1 : document.getElementById('some id') ,
....

MyFuction : function(){

element1.value="some text";
},


}



In this case MyFuction doesnt work :(

can somebody help to solve it ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20081025/7fbb91ab/attachment.html>


More information about the Project_owners mailing list