Getting SharePoint ClientContext in HTML page

579 views Asked by At

I'm trying to fetch SharePoint client context form a HTML page. I have added the sp.js, sp.core.js, sp.runtime.js, init.js, MicrosoftAjax.js to the page.

But every time it gives me error as:

 "Object doesn't support property or method 'get_staticObjects'".

There is a catch to this. When I load the sp.js after loading all other scripts I get a different error:

 "Sys.ArgumentException: Value does not fall within the expected range.
  Parameter name: serverRelativeUrl".

This error pops up even though I have used the full url i.e. https://...

0

There are 0 answers