Quote of the Day Web Part, Reprised – Part 1

\Via [EndUserSharePoint.com\] In March, Mark Miller of EndUserSharePoint.com (EUSP) has created a Quote of the Day web part. And while it has been downloaded and installed on many sites, it has one shortcoming: you had to edit the web part’s code to manage the quotes. Recently Mark asked me whether it would be possible to do something about it, to make the web part more end-user friendly.

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.

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.

Improve your jQuery

jQuery has been out there for a while now. Many web developers use it thanks to its simplicity. But because you can use it intuitively there is a chance you might overuse it. Because not all browsers out there can easily deal with lots of JavaScript your enhancements might decrease the user experience – definitely the opposite of what you wanted. So how can you avoid it?

Images slideshow in SharePoint 2007 using jQuery

Yesterday I published an article with an example on how you can display a random image in SharePoint 2007 using jQuery. With only a couple of lines of JavaScript you can pick a random image from an Image Library and display it on a page. But did you actually know that with a little more effort you can create your own images slideshow?