1 minute read
In a post on February 3 entitled Issues with SPServices and jQuery 1.5, I mentioned that there were some problems with SPServices and jQuery 1.5. Since then I’ve done pretty extensive testing, and I’m convinced that the only problem is that, as of jQuery 1.5, single quotes are *required* around z:row or any other similar node selector. This was actually “required” in previous versions of jQuery, but not enforced.
I’ve found “bug” in the jQuery Bug Tracker.
Looks like now they just require quotes instead of it being a best practice.
Thanks, Matt for finding that to confirm what I was seeing in my testing.
The symptom of this is that the z:row selector simply doesn’t work, so it seems like you’ve received no items back from a Web Services call, in the case of SPServices.
The moral of the story is: If you have jQuery in place and you upgrade to jQuery to 1.5, your scripts may break. Thorough testing is *always* a good idea, and in this case, there’s what amounts to a “known issue” to look out for. Be sure to check ALL of your selectors, not just those that use the z:row namespace, for the single quotes. They were always a good idea; now they are a requirement.