Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: SPServices Simple HTML/JS Implementation Returns Error

I was looking for something like SPServices for Dummies or SPServices Getting Started tutorials but nothing very useful for starters like me. This is my first time to develop with Sharepoint and SPServices, hope you could help me. I'm trying to get a list of "People" from our sharepoint with this very HTML/JS simple code but the status keeps on returning error. Can you tell me what's wrong with my code? Also if you have references on SPServices for newbies, I'd appreciate it a lot if you could share them. Thanks!
<!DOCTYPEhtml><html><head><scripttype="text/javascript"src="js/jquery-1.7.1.min.js"></script><scripttype="text/javascript"src="http://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/0.7.1a/jquery.SPServices-0.7.1a.min.js"></script><script>

          $(document).ready(function(){
               $().SPServices({
					operation: "GetList",
					listName: "People",
					webURL: "https://nibc.sharepoint.com/sites/BCP/Current/_vti_bin/Lists.asmx",
					completefunc: function (xData, Status) {
						alert(Status);
						console.log(xData);
					}
				});
          });
        
        </script><title>Test SPServices</title></head><body>
        Test
    </body></html>


Viewing all articles
Browse latest Browse all 6517

Trending Articles