Posts Tagged ‘dom’

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 [...]

Subscribe to RSS Feed Follow me on Twitter!