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 ''.

  • it was because i had button in my div, changed it to input fixed it – Mathematics Apr 3 '14 at 20:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.