completefunc

Jun 29, 2011 at 2:57 PM

hello,

  Can I have split the completefunc on UpdateListItems, one for Status=success and one for Status=error?

 

Thanks

Coordinator
Jun 29, 2011 at 3:46 PM

Sure. you can simply add some conditional logic in the completefunc based on the value of Status.

M.

Jun 29, 2011 at 5:45 PM

Keep in mind though, if you are sending in invalid CAML, you'll get a Status of success, even though the Web Service call has failed.  

Coordinator
Jun 29, 2011 at 5:57 PM

Good point, Matt. There are different types of "failures". A success status doesn't mean that you've gotten what you wanted, just that the AJAX call didn't fail.

M.