Better option to read list items form a sharepoint 2010 list using js


  • hi

    i have a concern about which is better option to fetch list items from sharepoint 2010 list in javascript

    there are 2 available options

    1) sharepoint 2010 client object model

    2) jquery spservices

    but i am not able to understand which one is better is option in terms of safety,security & stability / low maintenance 

    and also i have a doubt with sharepoint2010 JSOM is that it has a method

    var oList = clientContext.get_web().get_lists().getByTitle('Announcements');

    but does not have any method for getListByUrl

    Is getListByTitle is safe to use (as in sharepoint Object Model it is generally preferred to use GetListByUrl instead of GetListByTitle)?

    please share your experience


    • Moved by Lhan HanModerator Monday, March 05, 2012 3:46 AM sp2010 (From:SharePoint - Development and Programming (pre-SharePoint 2010))
    Friday, March 02, 2012 5:20 PM

All replies

  •  Both are ways to fetch the data. but its better you can use jquery services for better security on client side

    Rahul Sharma

    Tuesday, March 06, 2012 8:14 AM
  • Hi Rahul

    can you please elaborate "better security on client side"

    as far my understanding SPServices uses .asmx webservices & Client object model uses .svc client service that is Integrated & supported by microsoft (no interference of other scripts).

    Wednesday, March 07, 2012 6:56 AM