Hello,
I have been using Javascript CSOM via SharePoint Pages that are hosted on SharePoint Server. This works well.
I was wondering it it is possible to create a simple HTML Page outside SharePoint with necessary CSOM code and access the SharePoint site?
I want to run this page directly from my Windows Explorer or host this HTML into some other technology like – Apache / PHP. (I can download the required JS files from SP_ROOT folder and distribute it on Apache/PHP)
Thanks,
Kamlesh
After pulling my hair out for hours because none of the examples online were working for me in SharePoint 2013, I discovered (in an answer to this question: http://sharepoint.stackexchange.com/questions/199508/jsom-sp-clientcontext-returning-error)http:s// that 2013 uses the same files, but in a different location:
src=”/_layouts/15/init.js”
src=”/_layouts/15/MicrosoftAjax.js”
src=”/_layouts/15/sp.core.js”
src=”/_layouts/15/sp.runtime.js”
src=”/_layouts/15/sp.js”
I hope this helps someone else avoid hours of frustration.
(Many thanks to the poster of this question, who found his/her own answer after no one else knew the answer: http://sharepoint.stackexchange.com/questions/199508/jsom-sp-clientcontext-returning-error)