Archive

Archive for the ‘JQuery’ Category

SharePoint, JQuery and z:row when using Chrome

November 1, 2011 1 comment

I’ve recently been using JQuery with SharePoint web services quite extensively and initially had a few issues with Chrome not rendering when the same code works fine with IE. ¬†With this post I’ll show you what you need to change for cross browser compatibility as there seems quite a bit of confusion around the web.

A lot of code examples use:


$(xData.responseXML).find("z\\:row").each(function(){

whilst this works in IE & Firefox, it won’t function in Chrome or Safari, but if you are using JQuery 1.5 or greater, change this line to the following and you’ll have a working solution in all browsers.


$(xData.responseXML).find("[nodeName='z:row']").each(function(){

Categories: JQuery, SharePoint
%d bloggers like this: