javascript - Set a property as reference to an object -
I have a table with a property called "recordsource", which will name the object that will fill the contents Table
& lt; Table id = "tbl" record resource = "myobj" & gt; Now these are my works:
var myobj; Function obj () {this.code = new array (); This.name = new array (); } Myobj = new obj (); Myobj.code = ["A", "B", "C"]; Myobj.name = ["apple", "banana", "carrot"]; Function populate_table () {mytable = document.getElementById ("tbl"); Mytableobj = mytable.get attribute ("recorder"); // This is a string / my problem will return to how the recorder reference to the myobj object is that / a, b, c array}
myobj html>
Comments
Post a Comment