UNPKG

spservices

Version:

Work with SharePoint's Web Services using jQuery

30 lines (22 loc) 673 B
### Function **$().SPServices** ### Web Service **Lists** ### Operation **CheckOutFile** ### Example Here is an example of using CheckOutFile from [jonesnick770](http://www.codeplex.com/site/users/view/jonesnick770). This link from a DVWP calls the function to check out the document: ```html <a href="javascript:CheckOutBook('http://muskit9238/{@FileDirRef}/{@FileLeafRef}', '{@Modified}');"><b>Request Book</b></a> ``` Below is the javascript/jQuery: ```javascript function CheckOutBook(bookURL, lastDate) { $().SPServices({ operation: "CheckOutFile", pageUrl: bookURL, checkoutToLocal: "false" }); location.reload(true); } ```