I have a problem with developing an app for sharepoint.
While the Default.aspx works fine, the ClientWebPart.aspx does not. I load the whole SharepointJSFiles with
before i also tried with
I call my function with:
in the loadUserData function i create a clientContext with
var clientContext = new SP.ClientContext.get_current();
as mentioned - when I do this within my Default.aspx file everything works fine, but in the ClientWebPart.aspx it tells me:
Unable to get property 'get_current' of undefined or null reference
Although it is nearly the same code.
What am I doing wrong? Do I need to reference the Scripts different in the ClientWebPart.aspx than in the Default.aspx ?