k3060
k3060

Reputation: 47

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?

Some examples of codes would be much appreciated.

Also can you try and only give javascript examples please and not jquery.

Thak you for your help in advance

Upvotes: 0

Views: 1558

Answers (1)

Sebastian 506563
Sebastian 506563

Reputation: 7228

For that kind of work you can use Sharepoint JavaScript Client Object Model. Please read about it from:

How to: Complete basic operations using JavaScript library code in SharePoint 2013

there is not much differences in basic operations between 2010/2013 but be aware.

Upvotes: 1

Related Questions