I have a few jQuery click/hover events that attach to items in a list view, but when a user clicks to the next page and the results are loaded through ajax the events are no longer valid.
I can use live for some events, but since it is depreciated and inefficient for hover events I’m looking for a way to attach my events to new items when they are loaded… Is this possible?
You are looking for afterAjaxUpdate.
http://www.yiiframework.com/doc/api/1.1/CListView#afterAjaxUpdate-detail