Working with jQuery’s AJAX, Promises and Deferred objects

Working with jQuery’s AJAX, Promises and Deferred objects

jQuery’s implementation of making AJAX calls is quite easy to understand. There is $.ajax(), $.get(), $getJSON(), $.post() – which are all xhr requests, just different ways of writing it. It probably has the most straightforward syntax available and that’s why developers continue to use it, more than other libraries. The funny thing is, once we […]

How to do Ajax form validation with inline error messages – without using a plugin

How to do Ajax form validation with inline error messages – without using a plugin

When in comes to validating forms, there are basically two techniques you can use: 1) Server-side validation and 2) Client-side validation. Server-side validation is when form data is submitted, server analyzes then returns the user back to the form when items are invalid. Client-side on the other hand, is when Javascript analyses the fields before […]