ok..

Could u give me an example in code form, which handles some event by calling a callback function.