Trapping Errors

Aug 24, 2011 at 11:17 PM

I am working on a call to SPServices and getting a status return of Error.  So I want to see more about the error, so I figured that there should be something in the xData object that comes back that can help me.

Can someone explain what methods/properties are available from xData when there is a Status of Error. 

I tried to put an alert on xData.responseXML and this gave back [object], so I know there must be something to look at!


Thanks,

Coordinator
Aug 24, 2011 at 11:36 PM
PGh0bWw+PGJvZHkgYmdjb2xvcj0iI0ZGRkZGRiI+PGRpdj5Zb3UgY2FuIGFsZXJ0Jm5ic3A7PHNw YW4gY2xhc3M9IkFwcGxlLXN0eWxlLXNwYW4iIHN0eWxlPSItd2Via2l0LXRhcC1oaWdobGlnaHQt Y29sb3I6IHJnYmEoMjYsIDI2LCAyNiwgMC4yOTI5NjkpOyAtd2Via2l0LWNvbXBvc2l0aW9uLWZp bGwtY29sb3I6IHJnYmEoMTc1LCAxOTIsIDIyNywgMC4yMzA0NjkpOyAtd2Via2l0LWNvbXBvc2l0 aW9uLWZyYW1lLWNvbG9yOiByZ2JhKDc3LCAxMjgsIDE4MCwgMC4yMzA0NjkpOyBmb250LXNpemU6 IDE1cHg7IGZvbnQtZmFtaWx5OiBWZXJkYW5hOyAiPnhEYXRhLnJlc3BvbnNlVGV4dCB0byBzZWUg dGhlIHRleHR1YWwgcmVwcmVzZW50YXRpb24gcmF0aGVyIHRoYW4gdGhlIFhNTCBvYmplY3QuPC9z cGFuPjwvZGl2PjxkaXY+PHNwYW4gY2xhc3M9IkFwcGxlLXN0eWxlLXNwYW4iIHN0eWxlPSItd2Vi a2l0LXRhcC1oaWdobGlnaHQtY29sb3I6IHJnYmEoMjYsIDI2LCAyNiwgMC4yOTI5NjkpOyAtd2Vi a2l0LWNvbXBvc2l0aW9uLWZpbGwtY29sb3I6IHJnYmEoMTc1LCAxOTIsIDIyNywgMC4yMzA0Njkp OyAtd2Via2l0LWNvbXBvc2l0aW9uLWZyYW1lLWNvbG9yOiByZ2JhKDc3LCAxMjgsIDE4MCwgMC4y MzA0NjkpOyBmb250LXNpemU6IDE1cHg7IGZvbnQtZmFtaWx5OiBWZXJkYW5hOyAiPjxicj48L3Nw YW4+PC9kaXY+PGRpdj48c3BhbiBjbGFzcz0iQXBwbGUtc3R5bGUtc3BhbiIgc3R5bGU9Ii13ZWJr aXQtdGFwLWhpZ2hsaWdodC1jb2xvcjogcmdiYSgyNiwgMjYsIDI2LCAwLjI5Mjk2OSk7IC13ZWJr aXQtY29tcG9zaXRpb24tZmlsbC1jb2xvcjogcmdiYSgxNzUsIDE5MiwgMjI3LCAwLjIzMDQ2OSk7 IC13ZWJraXQtY29tcG9zaXRpb24tZnJhbWUtY29sb3I6IHJnYmEoNzcsIDEyOCwgMTgwLCAwLjIz MDQ2OSk7IGZvbnQtc2l6ZTogMTVweDsgZm9udC1mYW1pbHk6IFZlcmRhbmE7ICI+TS48L3NwYW4+ PC9kaXY+PGRpdj48L2Rpdj48L2JvZHk+PC9odG1sPg= --Apple-Mail-120-913968636--
Aug 24, 2011 at 11:39 PM

I think something happened to your response ?

Coordinator
Aug 24, 2011 at 11:52 PM
Sorry. Sometimes that happens when I reply from my iPhone.

You can alert xData.responseText.

M.
>