mimiz
15 Jan 2007, 9:33 AM
Hi,
I'm using a toolbar to do actions on different elements on my page,
var lineTb = new YAHOO.ext.Toolbar(getEl("line-"+id));
ligneTb.addButton(
{
text:"./images/delete.png",
className:'toolbar-btn delete',
tooltip:"delete element",
click:function(){
HERE
}
}
);
i just want to know how i can retreive element behind cusrsor when i click my button ...
all my "line"s elements are div element ...
if i do something like
e.target it doesn't work ...
Don't know if i am clear ...
thanks
mimiz
I'm using a toolbar to do actions on different elements on my page,
var lineTb = new YAHOO.ext.Toolbar(getEl("line-"+id));
ligneTb.addButton(
{
text:"./images/delete.png",
className:'toolbar-btn delete',
tooltip:"delete element",
click:function(){
HERE
}
}
);
i just want to know how i can retreive element behind cusrsor when i click my button ...
all my "line"s elements are div element ...
if i do something like
e.target it doesn't work ...
Don't know if i am clear ...
thanks
mimiz