Recent posts by m4rtini
|
Nov 7, 2007
|
Topic: Script development / dynamic eventlistener problem sel.addEventListener("click",function (){ fillSelect(id)}, true); this statement is in a loop where the event is added last, the problem is that the variable 'id' will change when the loop repeats, and i end up with all the events having the same id passed to fillSelect is there any way that i could fix this? |
|
Oct 14, 2007
|
Topic: Script development / settimeout problem i read pieces of another post http://userscripts.org/forums/1/topics/567 and ended up with this code: function repeat(i, ant, count)
//define som variables etc.. if (i<cord> if (ant<=total)
} var button = document.getElementById('mybutton');
i'm not getting any errors in the ff error window. but the problem seams to be that the timeout doesent execute |
