SharePoint

Open Modal Popup from Top Navigation

0You may face a certain requirement where you would want a popup to open instead of opening a new tab, or redirecting within the same tab when a user clicks on the Top navigation. This post will show you how to open modal popup from Top Navigation in SharePoint Online For this you can simply Read more about Open Modal Popup from Top Navigation[…]

Download selected files as Zip file using JavaScript

0I get a requirement where user needs to download the selected files from the SharePoint Document Library by zipping all of them. This I wanted to tr purely using JavaScript. The below will explain you how to download selected files as zip file using JSZip. After surfing the internet I found this useful tool called Read more about Download selected files as Zip file using JavaScript[…]

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

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

Display Version History Through JavaScript (Document Library – Document)

0Your version history is basically an .aspx page with certain parameters passed through Query String to identify for which item you are check the version history for. In case you hide the ribbon and edit properties menu from the item, this will be helpful to get the version history, you can add this code in Read more about Display Version History Through JavaScript (Document Library – Document)[…]