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.