Sharepoint 2010 向页面添加社交标记
在SharePoint中,当您单击“我喜欢它”图标时,它会将json发送到此URL “\u vti\u bin/socialdatainternalservice.json/AddQuickTag” 因此,我编写了一个自定义脚本,用于发送JSON数据Sharepoint 2010 向页面添加社交标记,sharepoint-2010,Sharepoint 2010,在SharePoint中,当您单击“我喜欢它”图标时,它会将json发送到此URL “\u vti\u bin/socialdatainternalservice.json/AddQuickTag” 因此,我编写了一个自定义脚本,用于发送JSON数据 $("a").click(function(){ $.ajax({ type: "POST", url: "/_vti_bin/socialdatainternalservice.json/AddQu
$("a").click(function(){
$.ajax({
type: "POST",
url: "/_vti_bin/socialdatainternalservice.json/AddQuickTag",
data: '{"targetPage":"http://url/calendar.aspx","title":"Documents - All Documents","quickTagId":0}',
contentType: "application/json",
success: function(msg){
alert(msg);
}
});
return false;
});
我得到一个错误,它只是说“处理请求时出错。”而日志文件中的错误是“无法识别以“/AddQuickTag”结尾的URL的请求格式。”
是否可以编写一个自定义脚本,将JSON数据发布到此URL,并让SharePoint标记页面?这些是对“我喜欢它”功能的调用
/vti_bin/socialdatainternalservice.json/GetNormalizedPageUrl
职位
我认为您需要首先执行GetNormalized调用。这些调用是针对“我喜欢它”功能进行的
/vti_bin/socialdatainternalservice.json/GetNormalizedPageUrl
职位
我认为您需要首先执行GetNormalized调用。您找到过解决方案吗?您找到过解决方案吗?
{"d":"http://<web app name>/"}
/vti_bin/socialdatainternalservice.json/AddQuickTag
{"targetPage":"http://<web app name>/","title":"Home - Home","quickTagId":0}
{"d":null}