sympmarc wrote:
here is the code, it is called from a CEWP on the home page the site collection. When I login it runs fine, but if I login as a site member with contribute permission it failes. See errors as comments in the code please.
Cheers
Shennu
Shennu:Hey Sympmarc, thanks for getting back.
Sounds like you're passing in some bad parameter(s). Can you post your code?
M.
here is the code, it is called from a CEWP on the home page the site collection. When I login it runs fine, but if I login as a site member with contribute permission it failes. See errors as comments in the code please.
$().SPServices({
operation: "GetAllSubWebCollection",
webURL: "/",
async: false,
completefunc: function(xData, Status) {
alert("Status=" + Status); //on this line it returns ParseError
var out = $().SPServices.SPDebugXMLHttpResult({
node: xData.responseXML //xData.responseXML is undefined.
});
$("#CEWP_ServicesSummary").html("<b>This is the output from the GetAllSubWebCollection operation:</b>" + out);
}
});
I couldn't work out why it fails, so I am using GetWebCollection and call it recursively in order to walk through the all the sub webs. That seems to work with the same site member... The only worry is the performance... What do you think?Cheers
Shennu