JQuery & JavaScript - May 2014

JSON error when loading HTML content with AJAX using $.get

Forcing datatype when loading content with AJAX
I'm currently working on a package for Umbraco which involves loading of some HTML forms dynamically with AJAX. Biggest part of the package relies on JavaScript, so everything in script has to be perfect in order to make package work properly. Therefore I started development of JavaScript library independetly of the rest of the package logic ... read more

JQuery .onchange issue in IE8

Solution for onchange event in old Internet Explorer versions
Apparently IE8 and older versions of IE browsers do not support JQuery onchange event for checkboxes and radio buttons. If you are using this for handling this event, your script will fail, because these events will not be fired on IE8 or older IE. Instead of this you can add handler for onclick event which works fine in pretty much any browser. ... read more