What is the best way to build java script in sharepoint? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the best way to build java script in sharepoint?

I am trying to build a dashboard in sharepoint and trying to see if I can learn java script and related courses to achieve. I found online that most of the time either it is suggesting 3rd party application or downloading and uploading web part which needs to be purchased. Please advice if we can do it.

5th Dec 2019, 8:21 PM
sabarish
sabarish - avatar
6 Answers
+ 3
You can use sharepoint web parts. You can use part of your scripts into content editor web part . https://www.google.com/search?q=sharepoint+web+part+content+editor&client=ms-android-samsung&prmd=vin&source=lnms&tbm=isch&sa=X&ved=2ahUKEwidjdbft5_mAhXil4sKHcGzBtAQ_AUoAnoECBAQAg&biw=412&bih=718&dpr=2.63#imgrc=bt_0HEoNGXHIvM Or you can use page viewer web part to render your own site into it.
5th Dec 2019, 9:21 PM
Furkan Mutlu
Furkan Mutlu - avatar
+ 2
Hmm .. first create non empty files (html , css , js). Put them into your sharepoint library or list. Then go create an empty 'publishing site' page. Click insert, media content, content editor. Add the web part. Click right side arrow on web part , choose edit web part. There it will ask you link to your document. Put your link as www.yourcompanyname.sharepoint.com/sites/your site/foldername/yourfile.html. then click ok. You will see your Hello world on the page :)
5th Dec 2019, 9:37 PM
Furkan Mutlu
Furkan Mutlu - avatar
+ 1
You can even add your own cdn (frameworks, stylesheets and libraries) if you have permission to edit Master pages . (If not talk to your system admin and you will need Sharepoint Designer to edit master pages)
5th Dec 2019, 9:31 PM
Furkan Mutlu
Furkan Mutlu - avatar
+ 1
Thanks, in the web part I see only one place. However where should we add 1. Js, 2. Css and 3. Html. I am beginner so wondering home to create, test and put all three in one place.
5th Dec 2019, 9:31 PM
sabarish
sabarish - avatar
+ 1
Thank you very much Furkan
5th Dec 2019, 9:55 PM
sabarish
sabarish - avatar
0
I hope you managed to make it work :) you are welcome my friend.
5th Dec 2019, 9:57 PM
Furkan Mutlu
Furkan Mutlu - avatar