I am trying to make an html page in an app, and I want to be able to get: SP.Utilities and _spPageContextInfo, which scripts do I need to add to my html in order to make it work?
I am in Office 365. I've tried the following scripts, but nothing worked:
<script type="text/javascript" src="/layouts/15/MicrosoftAjax.js"></script>
<script src="/_layouts/15/core.js"></script>
<script type="text/javascript" src="/_layouts/15/sp.debug.js"></script>
<script type="text/javascript" src="/_layouts/15/init.js"></script>
<script type="text/javascript" src="/_layouts/15/SP.Core.js" ></script>
<script type="text/javascript" src="/_layouts/15/SP.Debug.js" ></script>
<script type="text/javascript" src="/_layouts/15/SP.Runtime.Debug.js></script>
anyone tried it?
SP.ClientContext. Once you have aClientContextobject, you can get the current web and its server relative url. You won't need_spPageContextInfo. – wjervis Dec 22 '15 at 13:31SP.SOD.executeOrDelayUntilScriptLoaded, as stated in this answer. Please add error details to your question so we can better help you. – wjervis Dec 22 '15 at 13:38I just want someone to tell me which files to add.
– David Hemsey Dec 22 '15 at 13:45getQueryStringParameteris declared in some MSDN examples (and everyone copy/pastes those), Not necessary as multiple SP libraries provide the same functionality: http://sharepoint.stackexchange.com/questions/159289/what-does-this-code-getquerystringparameter-do/159290#159290 – Danny '365CSI' Engelman Dec 22 '15 at 13:59