CListView ajax update triggered by DB change

Hi,

I’m developing a Yii based application where measurement data is received periodically and inserted into a MySQL table. I would like to refresh CListViews using ajax update when new data is arrived. Is there any smart Yii way to do that? I didn’t find anything like this in the forum or wiki pages.

Thank you for your help in advance.

Szabolcs

Hello and welcome to the forum.

One way to do that is firing your controller’s action through ajax at your specific time interval (long-polling) or websockets. Or you may also want to see this wiki for HTML5’s Server-Sent Events.

Cheers