so i have been tasked with creating an ajax app which alerts users whenever data is updated on a site. the site has news articles, blogs user comments, forums etc etc.
i need to create a panel which updates automatically via ajax when ever a new article, comment or otherwise is posted.
i have thought the best way to do this is to create a windows service which runs everything 15 seconds. it searches my specified tables for changes, then inserts them in to a specified table, ie tbl_alerts.
in tbl_alerts will be item id, item title, item posted time, item url
the ajax panel will automatically refresh every 5 seconds and show if there are new items in tbl_alerts.
what i was wondering is if there is a better way of doing this, or is there a way to 'push' the data to the user without an ajax panel doing a lookup in the db?
thanks for any help.
i need to create a panel which updates automatically via ajax when ever a new article, comment or otherwise is posted.
i have thought the best way to do this is to create a windows service which runs everything 15 seconds. it searches my specified tables for changes, then inserts them in to a specified table, ie tbl_alerts.
in tbl_alerts will be item id, item title, item posted time, item url
the ajax panel will automatically refresh every 5 seconds and show if there are new items in tbl_alerts.
what i was wondering is if there is a better way of doing this, or is there a way to 'push' the data to the user without an ajax panel doing a lookup in the db?
thanks for any help.