Access sharepoint list from web site hosted externally from sharepoint -


i'm developing web application externally sharepoint online 2010. part of application allow users access documents document library. ideally users click on option, query library documents, , return json object each object satisfying query display links in webpage.

i've been looking way in website hosted externally sharepoint 2010, have been unable find resources describing how load ecma script api , connect sharepoint site. know can find information?

thank help!

you have several ways achieve this. out of box option using queries (from server code or ajax) list svc. in case don't know, lists have associated service pull information.

  1. http://msdn.microsoft.com/en-us/library/hh134614(v=office.14).aspx
  2. http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/01/21/introduction-to-querying-lists-with-rest-and-listdata-svc-in-sharepoint-2010.aspx

there wonderful js library @ codeplex, spservices, helps query sharepoint. list (sample code taken codeplex samples)

<script language="javascript" type="text/javascript">  $(document).ready(function() {   $().spservices({     operation: "getlistitems",     async: false,     listname: "announcements",     camlviewfields: "<viewfields><fieldref name='title' /></viewfields>",     completefunc: function (xdata, status) {       $(xdata.responsexml).spfilternode("z:row").each(function() {         var lihtml = "<li>" + $(this).attr("ows_title") + "</li>";         $("#tasksul").append(lihtml);       });     }   }); }); </script> 

more information @ http://spservices.codeplex.com/wikipage?title=getlistitems? keep in mind if list has security restrictions run pretty "interesting" authetication issues running calls outside sharepoint , not know hell making calls. so, suggestion, consider running pages under sharepoint.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -