:: Forum >>

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
Thursday, March 17, 2005
You need to define those events inside the Template function.
Carlos
Thursday, March 17, 2005
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
Friday, March 25, 2005

This topic is archived.


Back to support forum

Forum search