Archive for the ‘JavaScript’ Category

jQuery: IE8 bug when adding a Form

Quick version I found a bug in IE8 when adding a form to the DOM using jQuery, fortunately there is a simple solution, unfortunately it took a while to stumble upon it. Background Whilst implementing a new in-page contact form for limethinking.co.uk I ran into a bug with Internet Explorer 8. Unexpectedly though it worked [...]

jQuery: Manipulating an Ajax response before inserting it into the DOM

Quick gotcha – well it got me anyway. I was manipulating an HTML response from an Ajax request with jQuery before inserting it into the DOM but my changes were not making it into the DOM. My code looked something like this simplified example: $.get(’/some-url/’, function(data) { $(data).find(’#someDiv’).append(’<p>Some Text</p>’); $(’body’).append($(data)); }); The problem is is [...]

Internet Explorer Conditional Comments and JavaScript

As we prepare for the launch of the new Lime Thinking website, I have been looking at the front end. One issue we have found is getting some of the JavaScript enhancements working in the older versions of Internet Explorer. Whilst we are using jQuery which deals with most of these browser variations very effectively [...]

Subscribe to RSS Feed Follow me on Twitter!