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

New Post: Check if SPServices is being called

$
0
0

There are two methods to check this out that I use quite frequently.  The first is to take a look at the raw xml return that is produced from the Web Service call.  The other involves using a built in SPServices function to process the raw return into something more readable.  In each case, the calls are part of your 'completefunc:' argument.  If you're successfully making a web services call, you will always get something back.  The examples follow:

Method 1:  View the raw xml data return.
    Create a <textarea> element on your page to display the raw xml return from the SPService call such as...
    <textarea rows=20 cols=150 id='xmlTextBox' />

    Make the following code your 'completefunc:' argument:
    $("#xmlTextBox").val(xData.responseText);

Method 2:  Format the raw xml data return into a more readable format
    Create a <div> element on your page to display the formatted results such as...
    <div id='mySPDebug' />

    Make the following code your 'completefunc' argument:
    var strRtn = $().SPServices.SPDebugXMLHttpResult({
                             node: xData.responseXML
                      });
   $("#mySPDebug").html(strRtn);


Viewing all articles
Browse latest Browse all 6517

Trending Articles



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