Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am doing azure project in that i want to get list data from sharepoint online(Office365)

So it is possible using jquery?

share|improve this question
    
You really need to add more detail here. What does "get data" mean? Where are you consuming it? Are you consuming the data within the SharePoint Online site or are you doing it on a non-SharePoint site? Both C-Marius and PirateEric have given possibilities that you could use in either case. –  Robert Kaucher Apr 4 '12 at 20:14
    
My jquery run in azure project not in sharepoint site.So it is not possible that without any credentials passing i am getting data from sharepoint online. –  Vishal_Sharepoint Apr 5 '12 at 6:09
add comment

2 Answers

The simplest way is to either use REST Api that works for every list in SharePoint, via /_vti_bin/ListData.svc which you could use via $.ajax or $.getJSON calls.

Or use ECMA Client Object Model API in SharePoint 2010 which enables direct access using Javascript to lists. Google-it, many examples available http://blogs.msdn.com/b/sharepointdev/archive/2011/07/19/working-with-the-ecmascript-client-object-model-jsom-in-sharepoint-2010-part-3-nikhil-sachdeva.aspx Hope it helps, C:\Marius

share|improve this answer
1  
I would suggest to go for the REST alternative with jQuery library, which starting v.1.4 supports $.getJSON calls. –  C. Marius - MVP Apr 5 '12 at 14:11
add comment

You'll want to take a look at the SPServices library if you're wanting to get to SharePoint list data with jQuery. It wraps all the web services into easily accessible functions that are a snap to work with.

Since you haven't posted much detail, review the operations and post back with new questions if you have any issues, or post on the spservices discussion board.

share|improve this answer
    
I am able to get list data from local sharepoint server but my question is how i get data from office365. –  Vishal_Sharepoint Mar 5 '12 at 13:35
    
SPServices is a JQuery library used for accessing the built in web services of SharePoint. There is no reason I can think of that you cannot use that library to query data in a SharePoint Online list/library. –  Robert Kaucher Apr 4 '12 at 20:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.