-
WordPress & jQuery: Fix JavaScript error “$ is not a function”
When using jQuery in WordPress you might be surprised by a $ is not a function JavaScript error. For example, in a default WordPress 3.3.1 installation, the following JavaScript code leads to this error: $(document).ready(function() { console.log($(“body”)); }); The reason is, that WordPress by default uses jQuery’s “no conflict mode” to avoid compatibility problems with […]
-
ASP.NET MVC 3: Validate complex Types (Objects & Lists) in Ajax Form using jQuery and JSON on Client Side and Server Side
This blog post shows how to validate models containing complex types such as Objects and Lists in ASP.NET MVC 3. We start with the source code described in one of my previous posts “ASP.NET MVC 3: Using JSON result for jQuery Ajax Forms validation” (you can download the Visual Studio 2010 project here). Summarized this […]
-
ASP.NET MVC 3: Async jQuery progress indicator for long running tasks
If you have long running (server side) tasks in your ASP.NET MVC 3 web application it could be reasonable to provide the user with information about the current progress of this task. In this blog post I will show how such a progress indicator could be implemented using jQuery and AJAX. The basic idea is […]
-
ASP.NET MVC 3: Set up custom error pages to handle errors in “non-AJAX” requests and jQuery AJAX requests
In this blog post I will show how to set up custom error pages in ASP.NET MVC 3 applications to create user-friendly error messages instead of the (yellow) IIS default error pages for both “normal” (non-AJAX) requests and jQuery AJAX requests. In this showcase we will implement custom error pages to handle the HTTP error […]
-
ASP.NET MVC 3: Using JSON result for jQuery Ajax Forms validation
This blog post is my third blog post about jQuery Ajax forms with ASP.NET MVC 3. The first post “ASP.NET MVC 3: Ajax Form with jQuery validate supporting (unobtrusive) Client Side Validation and Server Side Validation” is about creating Ajax forms with jQuery validate to support client side validation and partial page updates. The second […]
-
ASP.NET MVC 3: Using jQuery .ajax() function to submit Ajax Form supporting (unobtrusive) Client Side Validation and Server Side Validation
Update 2011-08-09: I’ve written a follow-up blog post which shows how to use JSON to customize the way the server’s response is handled on the client side. This blog post summarizes how to use jQuery’s .ajax() function to submit an Ajax form in ASP.NET MVC web applications. In ASP.NET MVC you can use the Ajax.BeginForm(…) […]