Just tried to implement event handler in jQuery. The first impression that I have is simple, easy and straight forward. Yeps, what do you need to do is just binding event name with certain function and then of course, you need to trigger the event.
Below is an example on how to bind the certain object in javascript using jQuery:
$(document).bind('kampred.facebox', function(){
alert("si kampred");
});
The above will bind event named kampred.facebox to object document. In order to call this event and let the handler execute the function. What you need to do is to trigger it. Below is the example on how to do it.
$(document).trigger('kampred.facebox');
Calling the above line, will trigger the event kampred.facebox. Of course, it will prompt you an alert box. Its simple, isnt it.
Tuesday, August 18, 2009
Event Handler on jQuery
Subscribe to:
Post Comments (Atom)
1 comment:
小弟弟 貼影片區
卡通aa片
線上a片
線上卡通a片
卡通a片
小魔女免費a片小魔女
卡通a片下載
卡通a片觀賞
卡通aa片免費看
卡通 免費a片
免費線上卡通a片
免費下載卡通a片
sex520aa免費影片
情人視訊 援交網
視訊-高雄網
視訊-交友網
色美媚部落格
免費-線上a片
色美媚-部落格
色美媚聊天室
色美媚部落格2
色美媚部落格免費 a
色美媚部落格b片
自拍部落格
色美媚聊天室
色美媚視訊聊天
色美媚 交友網站
男人幫情色論壇
線上a片
男人幫情色論壇
男人幫
男人幫論壇
fhm男人幫
fhm 男人幫
台灣男人幫論壇
sogo 男人幫論壇
85cc男人幫論壇
癡漢論壇
女人色色網
Post a Comment