Apologies if I appear a little \"noobish\" with events, but for whatever reason the following doesn\'t work for me:
var someDomRef = document.getElementByRef(\"r
i is undefined when mouseup is called. You need to close over this with some closure functions:
var someDomRef = document.getElementByRef("refVal"); for(i=0;i
You may need another closure inside of the onmouseup function