Adding Script into a Content Editor Web Part (CEWP) in SharePoint 2010

This post was cross-posted on NothingButSharePoint.com on 9 May, 2011. In my earlier post, I showed how to add script into a page using the CEWP in SharePoint 2007. In this post, I’ll do the same for SharePoint 2010, though in SharePoint 2010 there are other options as well. It’s worth repeating the intro to the…

Using SPServices & jQuery to Clone a Parent Item and All Its Children: Comments on Mark Rackley’s Post

Mark Rackley (@mrackley) is definitely earning the salary I’m paying him as the Marketing Manager for SPServices.  (Yes, that salary is zero.) He posted another great article about Using SPServices & jQuery to Clone a Parent Item and All its Children today, and I wanted to point out a few things about it. I’m not…

Adding Expand/Collapse Logic to your Data View Web Parts (DVWPs) –The Easy Way

Live and learn. Maybe that’s my mantra. One thing I can tell you is that the first time I come up with a way to do something, it’s rarely the best. If I look at some old code of mine and think it’s perfect, I worry. We all are learning all the time, and it’s…

Script in Content Editor Web Parts (CEWPs) in SharePoint 2010

<UPDATE> 2010-10-27: After you read this, be sure to read Christophe’s follow-up to this post: About Scripts, Web Parts and Urban Myths. He gives some other specifics you’ll probably need. </UPDATE> One of the things I heard at SPTechCon several times was that in SharePoint 2010, it is no longer possible to put script into Content Editor…

How to Fix "Sys.ArgumentTypeException: Object of type ‘Sys._Application’ cannot be converted to type ‘Sys._Application’." Error

In one of my client projects, we kept seeing this error, and basically ignored it for a long time. In our case, we saw the errors specifically on pages that included NewsGator Web Parts and we thought they might be the problem, but it was actually a problem with the SharePoint AJAX settings which NewsGator would…

Neat Trick to Ensure You’re Serving Up “Fresh” Script and CSS in SharePoint

This is a cool trick devised by one of my colleagues at my current client. (Confidentiality reigns supreme in client situations. Suffice it to say that this wasn’t my bright idea, but I give credit to the real thinker.) We were having trouble with caching of .js and .css files which we were deploying to the…