3

I have only SharePoint designer and SharePoint site, neither we have a visual studio nor access to central administration site so no chance of server side code development. Now I want to know that what are the development options that I have in this environment?

Will JSOM work here? if yes then How using content editor web part?

1 Answer 1

4

Yes, you can use the JavaScript client object model (JSOM) in Sharepoint 2010.

  • It is useful in scenarios where data needs to access and manipulated after the page has been loaded.
  • It provides an asynchronous way of displaying data on your Web Parts and Web Pages.

  • It is simple to use and can be loaded even from within an editor similar to the content editor Web Part as the following:

    • Upload the Js file script to a SharePoint library to your site.
    • Get the Full URL of the uploaded file.
    • Open the page that you need to run your Js script.
    • From site Action > Edit this Page.

enter image description here

  • From the above ribbon > Add a web part.

enter image description here

  • At Content and Media category > Select Content Edito > Click Add button.

enter image description here

  • Edit Web Part.

enter image description here

  • Add the js file URL in Content Link section

enter image description here

  • Check In, Save and Close.

  • the Jsom Script now is attached to your page via Content Editor and should be working properly.


Check some JSOM examples in SharePoint 2010 at

1
  • Thank You very much M.Qassas, I appreciate ur quick answer
    – HungryTech
    Jul 24, 2017 at 7:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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