Archive for 'JavaScript' Category

Correct way of generating Source parameter value in your SharePoint Link

By Namwar Rizvi - Last updated: Tuesday, February 21, 2012

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

Share

Useful Javascript Functions and objects in SharePoint – Part 2

By Namwar Rizvi - Last updated: Monday, February 20, 2012

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

Share

Useful Javascript Functions and objects in SharePoint – Part 1

By Namwar Rizvi - Last updated: Sunday, February 19, 2012

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

Share

Quickest way to create Slide Show from your Picture Library in SharePoint

By Namwar Rizvi - Last updated: Sunday, February 5, 2012

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

Share

Quickest way to add Facebook Like Button on your SharePoint page

By Namwar Rizvi - Last updated: Monday, April 4, 2011

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

Share

How to create a general purpose Search Results ticker in SharePoint by jQuery

By Namwar Rizvi - Last updated: Saturday, May 22, 2010

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.

Share

How to dynamically construct the SharePoint site relative url in JavaScript

By Namwar Rizvi - Last updated: Friday, January 1, 2010

Here is the quickest and cleanest way to dynmically construct the site relative URL of the SharePoint

Share

Launch Office Application from SharePoint Portal Page

By Namwar Rizvi - Last updated: Thursday, February 26, 2009

Here is the quickest way to launch office applications directly from SharePoint Portal page.

Share