Category Archives: JavaScript

ASP.NET MVC returning 302 (Found) HTTP status code on unauthorized Ajax calls instead of 401(Unauthorized) like classic ASP.NET

Classic ASP.NET On classic ASP.NET when calling a [WebMethod] with Ajax in an unauthorized context (most likely in the case where the session expired) the response http status code is 401. You can handle this in the “error” handler (provided … Continue reading

Posted in AJAX, JavaScript | Comments Off

Calling SharePoint web services using jQuery

I needed to update a SharePoint list item directly on client side in a classic SharePoint list form. I found this blog who explains very well how to do it by using Prototype but I was already using jQuery and … Continue reading

Posted in AJAX, Sharepoint, jQuery | Comments Off