background preloader

Development

Facebook Twitter

JQuery on every SharePoint page. I’ve been doing a lot of work in the sandbox over the last few days, not all of it stress-free, but that is for another post. Something I wanted to be able to do was bootstrap a javascript library, for example JQuery, onto every page in the site. Outside the sandbox of course, there are a few ways to do this, however inside it your options are limited.

After much research, help from Wouter van Vugt (and SharePoint Overflow) I have the solution and now, the blog post too. First, as described by Jan Tielens over here, outside the sandbox there are a number of ways of achieving this, specifically: Adding a Script reference to the Master Page Not a solution for me because I didn’t want to overwrite the MasterPage as part of my feature activation.

I have packaged up my complete solution, and its available for you to download, grab it from here: Dynamic Data. Tutoriel. Log. Camlex.NET. Cascaded Lookup Dropdowns. SharePoint Cascaded Lookup Dropdowns (SPCD) is an entirely JavaScript-based solution for creating Cascading Dropdowns in a SharePoint list form (New or Edit). Download it from CodePlex Its main advantages are: No need for server backend deploymentNo GAC deploymentEasy setup and configurationAjax Based – no postback or nasty page reloadsNo need for any JavaScript FrameWork (jQuery, Prototype, …)Uses Entirely SharePoint’s services and DOMWorks in MOSS 2007 / WSS 3.0 and in MOS 2010 / WSFUse same JavaScript for many lists/formsCreate multiple cascaded relations in the same form What is a cascaded dropdown?

A Cascaded dropdown is a combination of two dropdown lists. Sample uses: - Continents –> Countries –> Cities, - Companies –> Contacts, - Accounts –> Branches –> Contacts, - Schools –> Classes –> Students Let’s examine an example below: We have a site with 3 lists: 1. 2. 3. And now you have a working cascading dropdown.

jQuery Library for SP Web Services. Impersonate Users in SharePoint.