9/06/2011

SharePoint 2010: Changes to HTML with Service Pack 1

Hacking around SharePoint’s HTML, CSS and JavaScript is both fun and a powerful way to enhance SharePoint without deploying custom code to the web servers. I call it “hacking” as Microsoft never intended for us to know or care about what’s behind the browser. While it’s rare for a Service Pack to change the HTML delivered to the browser, SP1 did change the JavaScript library used for the Calendar.

Service Pack 1 broke my color coded calendar code. (http://techtrainingnotes.blogspot.com/2010/06/sharepoint-2010-color-coded-calendars.html). The fix is a simple edit, just change SP.UI.ApplicationPages.CalendarNotify.$4a to SP.UI.ApplicationPages.CalendarNotify.$4b.

 

I am still going through my SP 2010 customizations, but so far, the color coded calendar is only one that SP1 broke.

 

Do you know of other changes?

If you have found other SP 1 changes that might impact client side customizations, please post them as a comment below!

 

Do you have SP 1?

A quick test is now possible due to the change to the calendar JavaScript. Just navigate to a calendar view and enter the following in the browser’s address bar:

            javascript:alert(SP.UI.ApplicationPages.CalendarNotify.$4a)

image

If you get a popup showing “undefined”, then you have SP 1 (or later). If you see code, then you have a pre-SP1 installation.

 image

 

 

.

Note to spammers!

Spammers, don't waste your time... all posts are moderated. If your comment includes unrelated links, is advertising, or just pure spam, it will never be seen.