Posts

Download ebook Extending jQuery

Download ebook Extending jQuery Book Description Extending jQuery teaches you to build custom extensions to the  jQuery library. In it, you'll discover how to write plugins and how to  design  them for maximum reuse. You'll also learn to write new widgets and effects for the jQuery UI. Along the way, you'll explore extensions in key areas including Ajax, events, animation, and validation. This book assumes intermediate-level knowledge of jQuery and JavaScript. No experience writing plugins or other extensions is required. Book Details Publisher: Manning By: Keith Wood ISBN: 9781617291036 Year: 2013 Pages: 312 Language: English File size: 16.6 MB File format: PDF
Q. What does AllowUnsafeUpdates do ? Ans. If your code modifies Windows SharePoint Services data in some way, you may need to allow unsafe updates on the Web site, without requiring a security validation. You can do by setting the AllowUnsafeUpdates property. C#: ? 1 2 3 4 5 6 7 8 9 10 using(SPSite mySite = new SPSite("yourserver")) { using(SPWeb myWeb = mySite.OpenWeb()) { myWeb.AllowUnsafeUpdates = true; SPList interviewList = myWeb.Lists["listtoinsert"]; SPListItem newItem = interviewList.Items.Add(); newItem["interview"] = "interview"; newItem.Update(); } } Q What does RunWithElevatedPrivileges do? Ans. Assume that you have a Web Part in which you want to display information obtained through the Windows SharePoint Services object model, such as the name of the current site collection owner, usa