Webdesigners vs. SharePoint: the body id

Body id is a cool webdesign trick that allows designers to easily alter the layout of a page using nothing more than a single property and some CSS styling. Using the body id you can define one HTML page structure for the whole site and then, by changing the single value of the body id attribute, you can create new experiences by styling the different pieces of the page in a totally different way. While it sounds very easy and it is very easy with HTML, this trick can get very challenging when used with SharePoint.

jQuery :regex filter

jQuery is a powerful library which simplifies working with JavaScript. Using CSS-like selectors it allows you to grab DOM elements on a page and run some operations on it. As you might’ve guessed the power is not only in what kind of operations you may perform but also how efficiently you are able to select the elements that you’re interested in. jQuery ships with quite a few filters among which Content Filters: selectors which allow you to select DOM elements based on the text they contain. And while the standard filters allow you to do some basic comparisons they are not powerful enough in more advanced scenarios.

tryGetValue in JavaScript

Recently, while working on a new JavaScript mockup I’ve noticed that JavaScript lacks a decent support for retrieving values of object properties. Constantly checking whether both object and property makes the code almost unreadable. But isn’t there a better to get the values of object properties and keep the JavaScript code to the minimum?

Improving the SharePoint print experience

Via EndUserSharePoint.com: The ability to print web pages has been available for years. Comparing it to the transition that most browsers have gone through, there is very little that has changed about how web pages are printed. While moving the digital version of a page to its paper equivalent, important information is not accessible to the print job. Luckily you can quite easily provide your visitors with a richer printing experience using no more than a couple of lines of JavaScript.