Posts Tagged ‘html’

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

IE Conditional Comments and XSL

Yesterday’s post reminded of the following issue with conditional comments for Internet Explorer when you are using XSL as a templating system as we are at Lime Thinking. If you just enter the following into the XSL file: <!–[if IE 7]> <link rel="stylesheet" href="/v9/styles/ie7.css" type="text/css"/> <![endif]–> then it will be treated as an XSL comment [...]

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!