Skip to main content

Posts

Showing posts with the label jQuery

Fetch outlook Calendar Events in SharePoint Webpart

Today I came across a requirement to get outlook events to SharePoint custom webpart. Thanks to Graph API to ease the work. Here are the steps that we need to follow in order to get events. 1. Register a new app in Azure Active Directory . Here is the blog that i referred. 2. Now its time to get access token using generated client id and secret in previous step. Execute below code to get access token. $.ajax({     type: "POST",     crossDomain: true,     url:       "https://cors-anywhere.herokuapp.com/https://login.microsoftonline.com/<Tenant ID>/oauth2/v2.0/token",     headers: {       "content-type": "application/x-www-form-urlencoded"     },     data: {       grant_type: "client_credentials",       client_id: "", //ClientId@TenantId       client_secret: "",//Client Secret       scope: "https://graph.microsoft.com/.default"     },     s

How to make SharePoint Site/Master page Responsive

Lets try to make a SharePoint site responsive. Making a SharePoint site responsive is a two way process. Making Master page Responsive. Making SharePoint page layouts responsive. Making contents that is gonna load on the page responsive. Note : I would recommend to use Bootstrap in order to make site responsive. Lets now start with making a responsive master page. First of all you need to have a responsive HTML site. Take the portion that you want to add into master page and uploaded the derived portion with all necessary reference files into SharePoint master page gallery. Now  publish the master page and click on the gear icon on top right corner > Click on design manager > Under D esigner Manager click on Edit Master Pages option and then click on  Convert an HTML file to a SharePoint master page option Select your html file. You will now be redirected to Preview page. You can have a look at the page and resolve issues if you find any.  On the prev

Site Logo link to Root Site Collection in SharePoint 2013

For a few recent projects our customers had asked to change the behavior associated with clicking the site logo of a SharePoint 2013 site. By default, when a user clicks the site logo of a subsite, for example, then that user is redirected to that site’s home page. Instead, our customers wanted the behavior such that the redirect was to the  site collection  home page. Fortunately for us, someone else had dealt with a similar request and identified a simple solution. Many thanks to the I am Sam blog and specifically  this post , which explains how to update the  <SharePoint:SPSimpleSiteLink> element in your master page. This is a relatively painless workaround to a common request. Regards, Keyur Pandya

SharePoint hosted apps with Angularjs

Wow.. I thought i won't be able to manage to write a blog this month. Hey guys today i am here with a something of that i have been planning since a long time. Some time back i tried to implement Angularjs with SharePoint. To be frank Angularjs is just awesome. You can have flawless feel while working with it. I don't know how will i manage to work with Angularjs in huge projects but i found it really really good to work with single page applications. Let's have a look to the classic definition of Angularjs that you find when you google for Angularjs. Angularjs "AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinctly. Angular's data binding and dependency injection eliminate much of the code you would otherwise have to write." SharePoint Apps SharePoint Apps, I personally found it more developer