Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is it possible to create a new item in a library and default that to a txt file or XML and using JavaScript or jquery insert data from a list into that file?

For example from a page click a button that fires JavaScript and creates new item in library...that item is based on blank text file, query a list for values and write them in the document?

share|improve this question
1  
Yes this is possible and it is a lot more code than I could demonstrate for all versions. Therefore which version of SharePoint are you using? Please state 2010/2013/365. –  Hugh Wood Dec 2 '13 at 10:44
    
using SharePoint 2010 –  Justin Dec 21 '13 at 16:10
add comment

1 Answer 1

This gives a few examples of using JS to create, update and delete SharePoint list items. http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx

It's working with lists, but I would imagine working with document libraries would be similar.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.