Jul 24, 2012, 2:34 PM
[CLOSED] Colorbox textfield extension
Hi,
I have done an extension of textfield control to simulate a colorpicker with result painted inside the textfield.
In older versions (1.x) works right in IE and FF, but right now, only works in FF.
The idea is to capture focus event of textfield that simulates a click. At this moment a colorpicker is showed at left of the textfield, and when the user selects a color this color is the background of textfield.
Well, to perform this I use a listener of textfield (focus) that opens the colorpicker like:
Any idea or workaround?
I have done an extension of textfield control to simulate a colorpicker with result painted inside the textfield.
In older versions (1.x) works right in IE and FF, but right now, only works in FF.
The idea is to capture focus event of textfield that simulates a click. At this moment a colorpicker is showed at left of the textfield, and when the user selects a color this color is the background of textfield.
Well, to perform this I use a listener of textfield (focus) that opens the colorpicker like:
C#
this.Listeners.Focus.Handler = string.Format("{0}.showBy({1}); {1}.blur();", colorMenuID, this.Element.Descriptor);
JS Result -> "ColorMenu.showBy(Color.el); Color.el.blur();"
This works in FF but not in IE now, it seems that focus event was fired in click and focus with key tab moving in the form in FF and later in v1.x and in IE only when you move to this textfield with tab key.Any idea or workaround?
Last edited by Daniil; Jul 31, 2012 at 12:28 PM.
Reason: [CLOSED]