Skip to main content

Posts

Showing posts from December 16, 2012

Flot Graph is not rendering on IE9

You might have come across a situation when you use jquery.flot.js for graphs ,flot graphs were not generated in IE9 due to the following Javascript Error in "jquery.flot.js" file. While debugging you will get the error like : "unable to get value of the property "init_" : object is null or undefined ". In  the method ConstuctCanvas(), in place of this snippet: ------------------------------------------------------------------------------ function makeCanvas(width, height)       {         var c = document.createElement('canvas');         c.width = width;         c.height = height;         if ($.browser.msie) // excanvas hack           c = window.G_vmlCanvasManager.initElement(c);         return c;       } ------------------------------------------------------------------------------  Use the following snippet ------------------------------------------------------------------------------------- function makeCanvas(width, height)