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

Getting the number of comments on a page with JavaScript (SocialCommentControl)

$
0
0

Hi, guys
I have a small and well-defined problem, but it's bugging me nevertheless. In the page layout for our news page, we have a SocialCommentControl like this:

<SharePointPortalControls:SocialCommentControl runat="server"/>

Users can read, add, edit and delete comments without problems. Works like a charm.

I need to write JavaScript code to present the number of comments for the current page in a div element.
I've found a lot of server side examples (C#) on this, but haven't been able to translate it to JSOM.

Can someone please give me a hint?

Thanks.





Viewing all articles
Browse latest Browse all 7589

Trending Articles



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