Good morning. I'm trying to run a bit of jquery that uses spservices to give me the total of a column in a list and then insert it into a specified <div> tag on my home page. The code works great if you're logged in as an admin, but won't work for anyone else. As far as I can tell, the code's still running, it's just not displaying anything. I've gone so far as to try giving normal users Full Access rights to both the Site Pages library and the list in question, but nothing works. The odd thing is that I'm running jquery all over the place and not having any issues except with this one script. Can anyone tell me why that would be? Are there some methods allowed and not others at a given level? I noticed I can't use sums in a view either unless people have contribute access, so maybe my understanding of permissions is just misinformed. Any help would be greatly appreciated. Here's the code:
function TotalADC(){ var intADCAgency = 0; //Add up the values $().SPServices({ operation: "GetListItems", async: false, listName: "ADC", CAMLViewFields: "<ViewFields Properties='True' />", CAMLQueryOptions: "<QueryOptions><IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns></QueryOptions>", completefunc: function (xData, Status) { $(xData.responseXML).SPFilterNode("z:row").each(function() { var intOfficeADC = parseFloat($(this).attr("ows_Census")); intADCAgency = intADCAgency + intOfficeADC; }); //alert(intADCAgency); jQuery("#ADCTotal").append(intADCAgency); } }); }