DavidDurman / FlexiColorPicker

A pure JavaScript color picker - no images, external libraries, CSS or 1px divs.
http://www.daviddurman.com/flexi-color-picker/
413 stars 149 forks source link

Not working in IE browser #14

Open sourcebits-chethankswamy opened 11 years ago

sourcebits-chethankswamy commented 11 years ago

Hi,

First of all thankyou for the great plugin. I have an issue in IE, please find the error details below, please let me know on how to proceed.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)

Timestamp: Thu, 1 Aug 2013 13:35:37 UTC

Message: Object doesn't support this property or method

Line: 242

Char: 13

Code: 0

URI: http://xyz.com/assets/js/library/colorpicker.js

line 242 has the following code: this.slideElement = element.getElementsByClassName('slide')[0];

Message: Object doesn't support this property or method

Line: 140

Char: 2

Code: 0

URI: http://xyz.com/assets/js/checkout.js

line no 140 has the following code: var cpDefault = ColorPicker(document.getElementById('default'), updateInputs);

Note: i am using the code that was present in the showcase.js file, modified it according to my requirements. Also the showcase example is not working in IE. Currently i am checking in IE 8