Monday, December 9, 2013

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

We may get the above response while Client object model in SharePoint. In my case, I have received this issue when get the list information from SP App. The code is perfect to get info from List. But I ddn’t get result set. Then I found an issue. The issue is not in script side. Its is in HTML side.

                <button id=”btnGet” value=’’Get Info” onclick=’’getinfo(); />

                We need to change like this,
               
                <input type=”button” id=”btnGet” value=”Get Info” onclick=”getinfo();”></input>


Then it was working fine for me. J

No comments:

Post a Comment