>

XSLT and jQuery Samples

I have been doing a lot of of XSLT and jQuery and thought I’d share a few snippets that others may find useful in future.
Example 1: Emit simple JavaScript / jQuery in XSLT:
<xsl:template match="something" xml:space="preserve"&#62…

Lists.asmx, GetListItems and Folders

I was doing some research for someone today around the list.asmx web service provided as part of SharePoint 2010 (and earlier).  She was able to get the list items at the root folder (including the names of sub-folders), but couldn’t get items i…

Lists.asmx, GetList and “Value cannot be null”

I discovered today that the GetList() method in lists.asmx web service has to be called very carefully or it’s prone to throw a mysterious “Value cannot be null” exception (and that’s assuming you can get past the even worse generic error messa…

Endlessly Nesting <div> Tags and jQuery

This seems like such an oddball topic, I’m not sure it’s really worth blogging about, but that’s never stopped me before, so here we go
I’m working out on a project where I’m pulling some data from a search, packaging it up into an XML messa…

Yet More jQuery–Resize an Image Example

I inherited a web part from a client’s old vendor and it has an image size problem.  The images should be 60×50 but for some odd reason, the original vendor forced them into 42×42, so they look squashed:
 

Good Image

Bad Im…

Implement a Global Pop-up Notification System

I wrote up an article for www.sharepoint.briefing.com entitled “Implement a Global Pop-up Notification System.”  This function was implemented for a community college to communicate school closings due to snow and so forth. 
It uses a cu…

Take Control of your OK and Cancel Buttons

I wrote this article a while back, but looks like I didn’t link to it from my blog at the time, so here goes:

This article describes how to force newform.aspx to redirect to one page when the user clicks OK and a different page when she clicks cance…

Quick Tip: Adding jQuery to MOSS Publishing Pages

When enhancing MOSS publising pages using jQuery, I hit the following speed bump:

Server Error in ‘/’ Application.

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please r…

In Praise of jQuery Enhanced Search-As-You-Type (by Jan Tielens)

I’m working on a BPOS demo (soon to be available up on Microsoft’s site) and I wanted to add a little pizzazz.  I’ve known about Jan Tielen’s efforts for quite a while and I thought it would be a great technique to add to the demo, so I did. …

Securing SharePoint List/Document Library Views Seems (sort of) Possible with jQuery

This is another post in my on-going series on how to use jQuery with SharePoint.If you want to learn more about jQuery, I highly recommend: jQuery in Action by Bear Bibeault and Yehuda Katz.
One of the first things I thought, once I started to play aro…