Category: code

jQuery Cycle plugin for an easy to code picture slider

why bother with costly external picture sliders or Silverlight scripts that have to be developed and deployed when you can simply use jQuery Cycle plugin?


Get the field value from dispform.aspx in SharePoint 2010 – 2013 via jQuery

I was trying to find a quick way to get the field value from dispform.aspx in SharePoint. Apparently, the internet is filled with .. let us say “less-interesting methods” to get that value


Let users only write numerical values in SharePoint via jQuery script

When you add a numeric field in SharePoint, it is still possible to type in alphanumeric values. Only when you press the “ok” or “save” button, the value is checked.


SharePoint loses attachment when trying to save without filling in mandatory fields

If you save a SharePoint item with an attachment while a mandatory field is blank, the page will error. But the attachments are gone! Here is a solution!


2 ways for Multiple filters on a (external) list without typing the whole thing – SharePoint 2007 / 2010

I am building a solution for a client where they can pick an item in an external list and they get to see a page with the rest of the data. The selection table, where you can pick the item, has 5 fields. All fields have to be able to be filtered in order to …


Update content type or metadata for multiple items in a list/library in SharePoint 2010 / 2007

I blogged about the awesome SPServices library before. This time, I needed another functionality of this jquery lib: SPUpdateMultipleListItems. What this does is let you make a query to select one or more items in a list and give you the power to update some fields (or delete items). That is just great. Imagine you …


Getting started with jQuery for SharePoint: reference to the jQuery library

After my last few posts about JQuery, I had some remarks from readers asking me what I meant with “reference to the jquery file”. So I think it will be useful to write this post on how to start with SharePoint customization with Jquery. What is Jquery ? JQuery is a JavaScript library, created to …


Hide inactive buttons and tabs on the ribbon in sharePoint 2010 via jquery

First time when I was working with SharePoint 2010, I was amazed about the new look and feel. In a negative sense, that is! Everyone was feeling so happy and joyful about it, and I just couldn’t get it. We went from a clean look in SharePoint 2007, where all my options are hidden underneath …


Fixing select/input switch field behavior on more/less then 20 items on SharePoint 2010 dropdowns via Jquery or customized pages

Users were complaining about a slow lookupfield (shown as dropdowns) that contained over 2000 items. It was not only loading slow, they had issues with typing in values as well. I asked this question at the msdn forum and had some great responses. Jeroen Van Bastelaere told me that SP2010 dropdowns had a special behavior: …


efficient way to get querystring variables via javascript

Just used this great snippet in a jquery script at a customer: http://snipplr.com/view/799/get-url-variables/ This will get you the value that is in the querystring for that variable. Example: www.balestra.be?name=marijn If I write: Then I will get a messagebox popped up that displays “marijn” This comes in handy when you have to get a few variables …