Home > Work > Site Asset List View and jQuery issue and resolution #in

Site Asset List View and jQuery issue and resolution #in

So recently I have been working on a project where we make use of the new Site Asset library capabilities in SharePoint 2010.

The Site Asset library comes with new functionality including pop-up previews of images and videos.

In particular, we are taking advantage of the fact that by uploading an image into the site library, 2 thumbnail versions are created for the list view preview and the pop-up preview.

This provides some good unique user experiences previously not seen in SharePoint out of the box before.

Anyway, to the jQuery issue:

It would appear that the Site Asset library (standard list view) uses the $ call for its JavaScript functions.  This obviously conflicts with the standard way to call jQuery functionality:

1 $.(this)


This results in the error:

  • Object doesn’t support this property or method



jQuery being implemented onto the master page doesn’t pose a problem since the SharePoint code is obviously called afterwards.

So by referencing jQuery in its longhand method:

1 jQuery.(this)


you can use both the site asset functionality as well as any jQuery customisations that you may need to do.

Hopefully that helps out fellow SharePoint customisers out there.

Categories: Work Tags: ,
  1. May 9, 2011 at 13:19

    Note that this seems to be the only place in SharePoint where the $ conflict occurs. Elsewhere, you should be fine using the $ notation.


    • May 9, 2011 at 15:30

      Hi Marc,

      Totally agree. I haven’t found it elsewhere either.

      Kind Regards


      PS. I know a lot of the blogs I post about could be a lot easier with your SPServices library. I do plan to use it once I get the chance to evaluate it as it looks very good. Keep up the good work 🙂

  2. June 9, 2012 at 04:50

    if you include jQuery with a siteaction please note to use a higher sequence number (e.g. 50000) or you will experience other issues like described here: http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/ae7c5e7e-467a-4063-9b42-81d941284b69


  1. No trackbacks yet.

Leave a Reply to Patrick Lamber Cancel reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: