3.2.0

Editable templates problem

I've to confronted a problem when assigning "onmouseover" and "mouseout" event handers to an editable tamplate (input text, textarea... doesn't metter)

Here is a piece of code:
var tpl = new My.Templates[type];

tpl.setEvent("onmouseover", function()
{
    this.action("actionOver");
});

tpl.setEvent("onmouseout", function()
{
    this.action("actionOut");
});


The template's functionality is being broken in this case: when you are in edit mode and click to another editable cell in the same column, it crashes. Could anybody reproduce the situation and help me, please.
DeadMoroz
March 17,
You need to define those events inside the Template function.
Carlos
March 17,
could anybody, please, sketch a piece of code for me?
for example, how to assign these handlers for Textbox template http://activewidgets.com/javascript.forum.1394.35/textbox-template-edit-on-double.html

thanx in advance
DeadMoroz
March 25,

This topic is archived.

See also:


Back to support forum