sharepoint list column in jquery
How to user sharepoint list columns in Jquery. Can anyone please provide me an exampl开发者_JAVA技巧e of reading sharepoint list columns.
Thanks,
Another open source project that might be useful for you is mine: SPServices. The docs have plenty of examples.
This is a jQuery library which abstracts SharePoint's Web Services and makes them easier to use. It also includes functions which use the various Web Service operations to provide more useful (and cool) capabilities. It works entirely client side and requires no server install.
This open source project may help you - Codeplex - JPoint
Point is an open source javascript API and script deployment framework for Sharepoint. It leverages the speed and agility of jQuery to manipulate Sharepoint forms and pages, communicate to Sharepoint webservices, and to build jPart plugins.
I prefer simplicity in code, and if you'd like, I feel that you can get a much larger understanding of functionality by writing the code yourself. I suggest, depending on your sharepoint version, using the REST interface with the listdata.svc web service. Here's the code for reading data from a list "employees".
$(document).ready(function(){
$.getJSON('<insert relative url to site containing list>/_vti_bin/listdata.svc/employees', function(data){
$.each(data.d.results, function(index, value){
alert(value.<columnName>);
});
});
});
精彩评论