开发者

Sharepoint 2007: Pop up message on new announcements

Is it possible to display on a pa开发者_高级运维ge a javascript popup message if there are new unseen items in an announcements list?


If you want the pop-up to jump out even when the user does not refresh a page, you will need to develop a polling mechanism (using JS) and call a web service to find out if there are new items. Otherwise, you just need to add a web part to the page that will do the check on page load. We did something similar, showing the users how many documents there are in a document library that each user has not read. we used the SPAudit object to find our what items have been seen by which user. Of course it has to be optimized for performance, so we just check a few of the latest items, not all of them. We even added this to the quick links menu, so that next to each document library appears a number of document the current user has not read yet, it is really cool, very similar to what you need.


You could store the last time the user viewed the announcements in a cookie and read that out to compare against the newest item. You can also store that the user has closed the pop-up.


Have a look at the following resources. You can make it work with minimum alteration

  • Using Jquery In Sharepoint To Display Notifications For Open Tasks
  • SharePoint Tasks Popup using JavaScript API
  • jQuery Ticker for SharePoint Announcement List
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜