Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Saurabh on May 27, 2009 02:57
open dhtmlx forum
dhtmlxcolorpicker

I am trying to upgrade my application with the new version of dhtmlx 2.1 from dhtmlx1.6.
After replacing the dhtmlxcolorpicker folder with the new version I got few errors like
onSelectHandler is not a function & few more.
I modified my code with setOnSelectHandler but after that when I click on the colorpicker
and try to click on Select button after choosing the color I get following error...

dhx_catch[i].apply is not a function

This error comes in the new function dhtmlxeventable() added in version 2.1

Kindly provide me with some solution for this as well as for other components too
which I may face while upgrading them to version 2.1
Answer posted by Alex (support) on May 27, 2009 07:26

Hello, 

please, check teh following sample in the colorpicker package:

dhtmlxColorPicker/samples/usage/event.html

it demonstrates how to set onSelect handler.

Regarding  dhtmlxeventable - please, check that you use the latest dhtmlxcommon.js (from the latest colorpicker package).

If the issues still appear, please provide the sample to reproduce them.