Posts

Showing posts from March, 2012

People Picker +JQuery

Validate People Picker value with NULL/empty ---------------------------------------------- <script language="javascript" src="URL/Shared%20Documents/jquery-1.9.1.min.js" type="text/javascript"></script><script type="text/javascript"> function getPickerInputElement(pickerNo) {  var result = "";  var j = 0;  var divs = document.getElementsByTagName("DIV");  for (var i=0; i<divs.length; i++) {    if (divs[i].id.indexOf("UserField_upLevelDiv") > 0) {      j++;      if (j == pickerNo) {        result = divs[i];        break;      }    }  }  return result; } function PreSaveAction() {    var objPeoplePicker = getPickerInputElement(1);     var ppValue=objPeoplePicker.innerText;    if(ppValue.trim().length==0)    {           alert('Pleae en...

Sharepoint 2010 Object model Tutorial

Please use the following URL for http://www.learningsharepoint.com/2010/07/13/sharepoint-2010-object-model-tutorial/ http://www.learningsharepoint.com/sharepoint-2010-ecmascriptjavascript-client-object-model-tutorialsamples/ This is a step-by-step tutorial to learn Sharepoint 2010′s Server and client object model. Check out : Part 1 Part 2 Part 3 In this post I will discuss various classes and methods that are used to extract data from sharepoint 2010′s list\libraries, sites, site collections, webs, webapplictaions etc using Server object model only. For Client Object model see Client Object Model Tutorial . As we go along we also will discuss the detailed code snippets for these object models and some notes and tips about the best practices. Server Object Model – Here we will look at how to use SharePoint API’s, LINQ, REST and SharePoint web service to extract data from sharepoint server. Lets Start with using the API’s in Microsoft.SharePoint and Microsoft.SharePoint....