Development

TwitterFacebook
Get flash to fully experience Pearltrees

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. http://community.zevenseas.com/Blogs/Daniel/Lists/Posts/Post.aspx?ID=131
http://www.sharepointboris.net/js/spcd/ 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 deployment No GAC deployment Easy setup and configuration Ajax Based – no postback or nasty page reloads No need for any JavaScript FrameWork (jQuery, Prototype, …) Uses Entirely SharePoint’s services and DOM Works in MOSS 2007 / WSS 3.0 and in MOS 2010 / WSF Use same JavaScript for many lists/forms Create multiple cascaded relations in the same form

Cascaded Lookup Dropdowns

Impersonate Users in SharePoint

Posted on April 9, 2009 by donabel Sometimes when creating SharePoint web or console applications, you may need to execute specific code blocks in another user’s context. Impersonating users in SharePoint will require a couple of things: the account that the web or console app uses has privileges to impersonate other users (typically this would be the system account) specific users’ user tokens http://blackninjasoftware.com/2009/04/09/how-to-programmatically-impersonate-users-in-sharepoint/