i need to write a little function to create a number of objects based on rows of a form, then for each text input in that form, set the onkeyup to a function in the object created for that row. soo far, ive been able to create
Code:
function autostart(numrow, numcolumn)
{
var code = "";
for(var i = 0; i < numrow; i++)
{
code += "var line" + i + " = new autoseach(" + i + ");";
for(var i2 = 1; i2 < (numcolumn - 1); i2++)
{
}
}
eval(code);
}
and that works, but when i try to add something like
Code:
document.getElementById('t00').onkeyup = line0.searchforops(1);
the onkeyup doesn't get triggered. any ideas what i should be doing?
ps in
Code:
document.getElementById('t00').onkeyup = line0.searchforops(1);
the id will be different for each line, in line# the number will be different for each line, and the value passed into the searchforops will be affected by the column of the text box.