Archive for 'JavaScript' Category
Correct way of generating Source parameter value in your SharePoint Link
As you may already know that SharePoint uses Source parameter in query string to take you back to the page from where you came. The value of the Source paramter must be properly encoded. Don’t worry, you do not need to write your own Javascript function to do this. Just use already provided function called […]
Useful Javascript Functions and objects in SharePoint – Part 2
In my last article “Useful Javascript Functions and objects in SharePoint – Part 1” I listed some useful javascript objects in SharePoint. Today I will continue exploring useful functions. DOM Management byid(id) = Return element for the given id newE(tag) = Create a new dom element of the given tag e.g. div etc. wpf() = […]
Useful Javascript Functions and objects in SharePoint – Part 1
SharePoint has a huge set of javascript functions and objects which are defined in essential SharePoint javascript files like init.js, core.js, forms.js etc. These files are necessary for SharePoint to function properly. There is no reason to reinvent the wheel by writing your own javascript function for something which is already provided by these core […]
Quickest way to create Slide Show from your Picture Library in SharePoint
Although there are many scripts available on internet which helps you to create slide show or image carousel but none of them gives us the ability to display Title and Description along with the image. I searched quite a lot and then ultimately end up creating my own. I must clarify that I have not […]
Quickest way to add Facebook Like Button on your SharePoint page
Facebook is everywhere. No one can deny the importance of Facebook’s social media capabilities. If you want to add the Facebook Like button on your SharePoint pages then just paste the following code in a Content Editor Web Part and you will instantly get the Like button for that page. You do not need to hardcode […]
How to create a general purpose Search Results ticker in SharePoint by jQuery
Here is the quickest way to create search results ticker in SharePoint by using jQuery and jCarousel Lite. Just copy paste the code and your ticker is ready.
How to dynamically construct the SharePoint site relative url in JavaScript
Here is the quickest and cleanest way to dynmically construct the site relative URL of the SharePoint
Launch Office Application from SharePoint Portal Page
Here is the quickest way to launch office applications directly from SharePoint Portal page.