简体   繁体   English

如何从HTML文档向共享点列表添加项目?

[英]How to add items to sharepoint list from a html document?

I am trying to create a comments section in a sharepoint site. 我正在尝试在共享站点中创建评论部分。 Is there anyway I can use javascript to read some text from a 'div' or a 'p' element and then add that item into a list when the user press submits? 无论如何,我可以使用javascript从'div'或'p'元素中读取一些文本,然后在用户按下提交时将该项目添加到列表中吗?

Some examples of codes would be much appreciated. 代码的一些示例将不胜感激。

Also can you try and only give javascript examples please and not jquery. 您也可以尝试只提供JavaScript示例,而不提供jquery。

Thak you for your help in advance 提前感谢您的帮助

For that kind of work you can use Sharepoint JavaScript Client Object Model. 对于此类工作,您可以使用Sharepoint JavaScript客户端对象模型。 Please read about it from: 请从以下网址阅读:

How to: Complete basic operations using JavaScript library code in SharePoint 2013 如何:在SharePoint 2013中使用JavaScript库代码完成基本操作

there is not much differences in basic operations between 2010/2013 but be aware. 2010/2013年之间的基本操作没有太大差异,但请注意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法将列表项添加到 HTML 文档 - Not able to add list items to HTML Document SharePoint REST API 用于 Sharepoint 在线检索超过 5000 个项目的列表/文档库中的项目 - SharePoint REST API for Sharepoint online retrieving items from a list/document library which exceeds 5000 items sharepoint列表/文档库栏目中如何添加脚本 - How to Add a Script in column of sharepoint list / document library 如何将附件文档转换成表格或从 sharepoint 列表下载到本地 - How to get attachment document into form or download it to local from sharepoint List 动态显示 SharePoint 列表项到 HTML - Dynamically display SharePoint List items into HTML 如何在共享点列表项中添加状态“活动”或“非活动”。 通过使用SharePoint设计器? - How to add status “active” or “Inactive” in sharepoint list items. By using sharepoint designer? 如何使用JavaScript从Sharepoint列表中的文件夹中获取项目? - How get items from folder in Sharepoint list using JavaScript? 如何使用 REST API 作为托管应用程序从客户端上传和获取 SharePoint 文档库中的项目? - How to upload and GET the Items in the SharePoint Document Library from client side using REST API as a HOSTED APP? 共享点列表项目中的组织结构图 - Organization Chart from sharepoint list items 如何在列表项中添加和删除类? - How to add and remove class from list items?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM