Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Notify of new replies in Discussion Board topic

$
0
0

Hi

In a Discussion Board, I'd like the user to be informed (on the same page) if there have been new replies on the topic they are looking at.

To do this, I thought I'd query the db periodically for items newer than the time of last refresh, and display the number of new items to the user.

To that end, I'm trying to get the Item id of the current topic using the JS client object model. I've tried using _spPageContextInfo.pageItemId, but it is undefined on this page. The page I'm referring to is the page that is navigated to when a main topic is selected, so it will show the main topic, and all replies under that topic. How can I get the current topic item id on this page?

Thanks

(ps. I'm very open to other ideas for achieving my goal. Ideally I'd like new replies to automatically appear, but I have to start small if I have to program this myself.)


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>