mQuery for SharePoint 2013 - Netwoven

mQuery for SharePoint 2013

By Matthew Maher  •  August 20, 2012  •  3115 Views

Netwoven Blog

I was poking around the new Office365 preview and started writing some custom JavaScript tweaks when I found a JavaScript class file called mQuery.js. This was confusing to me, as I had heard from some of the rumors that SharePoint 2013 was going to ship with jQuery out of the box. So I started probing into this new mQuery.js file, and low and behold it looks very similar to jQuery’s event features. Here is the mQuery.js file from their CDN, and here are some functions from the file:

  • addClass
  • css
  • bind
  • removeClass
  • click

So how can you make use of these functions? mQuery uses the no conflict technic that jQuery uses, so instead of your typical jQuery select $(‘#myID’).hasData(); you can use m$(‘myID’).hasData();. This way you can use mQuery you can still use all your jQuery functions that you have already written.

At the end of the day I really hope that Microsoft decides to use jQuery and publishes these custom functions as plugins. But I don’t know how realistic this is, so we might want to start using the built mQuery functions.

Matthew Maher

Matthew Maher

Matthew Maher is the Vice President of Delivery at Netwoven, bringing nearly 20 years of experience working with Fortune 500 companies to implement large-scale enterprise systems. He has led major digital initiatives across industries including technology, healthcare, finance, and retail. As an early member of the Netwoven team, Matthew played an integral role in scaling the organization from its infancy to a thriving Microsoft solutions partner. In his current role, Matthew heads cross-functional delivery teams and oversees complex cloud and security solution deployments.

Leave a comment

Your email address will not be published. Required fields are marked *

Dublin Chamber of Commerce
Microsoft Partner
Microsoft Partner
Microsoft Partner
Microsoft Partner
Microsoft Partner
Microsoft Partner
Microsoft Fast Track
Microsoft Partner
MISA
MISA
Unravel The Complex
Stay Connected

Subscribe and receive the latest insights

Netwoven Inc. - Microsoft Solutions Partner

Get involved by tagging Netwoven experiences using our official hashtag #UnravelTheComplex