Google Map with current time and Yahoo Weather for SharePoint

0The code below does the following things 1) Gets the City and WOEID from City Marker List (where city for e.g. Mumbai and WOEID is the ID through which we can get the weather of Mumbai from yahoo) 2) Interacts with Google API and loads the map. Then mark the city win a pin (the city Read more about Google Map with current time and Yahoo Weather for SharePoint[…]

JavaScript: Reuse the “Working on it…” pop in

0An issue was reported in which, on navigating to different pages, the user gets to see a blank screen for about 10 seconds and then the page used to load. After careful research we observed that the third party JavaScript files where taking quite some time to load. I could not find out any way Read more about JavaScript: Reuse the “Working on it…” pop in[…]

SharePoint

Get Information from SharePoint List using Rest API

0There was a requirement where i had to get the latest record from a SharePoint Library onto a page and display its title and image, and on click of these would redirect me to another page. I was thinking to use EcmaScript but i was told about rest api, and believe me, its awesome. Below Read more about Get Information from SharePoint List using Rest API[…]

SharePoint

Add values to Choice Field drop down sharepoint choice field column

0I tried this just for fun 😛 , enjoy

 

Display Version History Through JavaScript (List)

0Well this requirement came in one of my project where the user should be able to view version history of list items but ribbon access should not be allowed. When you usually view version history through the SP Ribbon, it actually calls the VersionHistory.aspx page and by passing the parameters List(GUID), ID(ListItem ID), Source(URL of List Read more about Display Version History Through JavaScript (List)[…]

Open Create Folder dialogue in Document Library using JavaScript

0Well this requirement came in one of my project where the user should be able to create folder but ribbon access should not be allowed. When you usually create a folder through the SP Ribbon, it actually calls the Upload.aspx page and by passing the parameters RootFolder (library name), Type=1 & IsDlg=1, we get a UI Read more about Open Create Folder dialogue in Document Library using JavaScript[…]

SharePoint

Check if current user belongs in particular group using JavaScript

0To check if current user belongs in a particular group kindly implement the code below script:

Check out the below link: http://stackoverflow.com/questions/22122139/check-if-current-users-belongs-to-sp-group-using-javascript-client-side-object-m

SharePoint

Tips & Tricks: SharePoint Modal Dialogs

0The following JavaScript snippet is sample code that you could use to open a SharePoint page in a modal dialog:

Opening and Closing Modal Dialog: If dialog requires updating information on the parent page, which you may not have access to, you can use this method to force a page refresh if the dialog Read more about Tips & Tricks: SharePoint Modal Dialogs[…]

SharePoint

Delete selected SharePoint list items through JavaScript

0To delete a list item, call the deleteObject() function on the object. The following example uses the getItemById(id) function to return the second item from the list, and then deletes the item. SharePoint Foundation 2010 maintains the integer IDs of items within collections, even if they have been deleted. So, for example, the second item Read more about Delete selected SharePoint list items through JavaScript[…]

SharePoint

JavaScript to change default SharePoint 2010/2013 message when no list items are present

0SharePoint gives a default message as follows for list views when no list items are present in the view: “There are no items to show in this view of the Pages List.To add a new item, click New”. The text might have to be changed in many situations. The following JavaScript can be used to Read more about JavaScript to change default SharePoint 2010/2013 message when no list items are present[…]