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

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)[…]

SharePoint

Display Current User through Javascript

0I have used SharePoint’s JavaScript Object Model to retrieve the current logged in username. Once you have executed the load and executeQueryAsync methods and the call to SharePoint was successful, then inside of the onQuerySucceeded method is where I display the username to the browser using the SP.Principal.get_loginName property. Try it out.You can host and run the Read more about Display Current User through Javascript[…]