1

This function works fine,

SP.SOD.executeFunc('sp.js', 'SP.ClientContext', loadCurrentWeb);

but when I put it in,

function AddNewSubWebNow() {
    SP.SOD.executeFunc('sp.js', 'SP.ClientContext', loadCurrentWeb);
}

it gives me,

Unexpected response from server. The status code of response is '0'. The status text of response is ''.

Mathematics
  • 1,753
  • 5
  • 28
  • 56

0 Answers0