Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

Commented Issue: Add completefunc function check [10112]

$
0
0
From: http://spservices.codeplex.com/discussions/428254

The problem from what I've found looks to be a bug in SPServices 0.7.2. I've found this on line 1206:

opt.completefunc(cachedXML, status); // When the call is complete, do this

The error you are getting is because you can't invoke null... The line above does that blindly without checking the actual property for anything... I modded line 1206 to this and it works like a charm.

if ( $.isFunction( opt.completefunc ) ) {
opt.completefunc( cachedXML, status ); // When the call is complete, do this
}

Let me know if that fixes you up...

Cheers,
Matthew
Comments: Added check to 2013.01ALPHA3

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>