event called after value of cursor was changed
data.attachEvent("onAfterCursorChange", function(id){ //custom code })