Hi All,
I had issues in running JavaScript Object model in HTML page. Since it is not SharePoint page so referring only 'sp.js' won't help. I googled several things and later I got to know that I've to add all the below references to make the JSOM works in an HTML page.
<script type="text/javascript" src="https://uat-intranet.cbreglobalinvestors.com/_catalogs/masterpage/Unite/Scripts/jquery-1.9.1.min.js"></script>
<script src="https://uat-intranet.cbreglobalinvestors.com/_layouts/1033/init.js"></script>
<script src="https://uat-intranet.cbreglobalinvestors.com/_layouts/MicrosoftAjax.js"></script>
<script src="https://uat-intranet.cbreglobalinvestors.com/_layouts/sp.core.js"></script>
<script src="https://uat-intranet.cbreglobalinvestors.com/_layouts/15/sp.runtime.js"></script>
<script src="https://uat-intranet.cbreglobalinvestors.com/_layouts/15/sp.js"></script>
Thanks,
Kunal
I had issues in running JavaScript Object model in HTML page. Since it is not SharePoint page so referring only 'sp.js' won't help. I googled several things and later I got to know that I've to add all the below references to make the JSOM works in an HTML page.
<script type="text/javascript" src="https://uat-intranet.cbreglobalinvestors.com/_catalogs/masterpage/Unite/Scripts/jquery-1.9.1.min.js"></script>
<script src="https://uat-intranet.cbreglobalinvestors.com/_layouts/1033/init.js"></script>
<script src="https://uat-intranet.cbreglobalinvestors.com/_layouts/MicrosoftAjax.js"></script>
<script src="https://uat-intranet.cbreglobalinvestors.com/_layouts/sp.core.js"></script>
<script src="https://uat-intranet.cbreglobalinvestors.com/_layouts/15/sp.runtime.js"></script>
<script src="https://uat-intranet.cbreglobalinvestors.com/_layouts/15/sp.js"></script>
Thanks,
Kunal