3.0.5

onenter event

I wish to implement a enter event. I want send the row value to another page or another souce when user press Enter.

Thanks
cbotta
February 4,
Something like this?
var defaultEventHandler = obj.getEvent("onkeydown");

var myEventHandler = function(event){
    if(event.keyCode==13){
        alert(obj.getProperty("selection/index"));
    }
    else{
        defaultEventHandler.call(this, event);
    }
}
obj.setEvent("onkeydown", myEventHandler);
Alex (ActiveWidgets)
February 4,
alex,
it is working fine.
but i have a problem, it always select the first row only.

please give me the solution
jeeva
October 5,

This topic is archived.

See also:


Back to support forum