Categories | Question details Back To List | ||
onRowSelect and onRowDblClick Hi, I have a dhtml grid. now in one particular field I want to fire two events. OnSingleClick I want to change the value of the field and on double click I am opening one highslide. But it is behaving strangely. SingleClick event always fires doesn't matter I am calling onRowSelect or onRowDblClicked. Code is as follows: function oneClick(ProwId,PcellId) { flag=false; grdMainAstEmpAvail.attachEvent("onRowDblClicked",doubleClick); if(!flag){ grdMainAstEmpAvail.cells(ProwId,PcellId).setValue('oneclick'); } } function doubleClick(ProwId,PcellId) { flag=true; grdMainAstEmpAvail.cells(ProwId,PcellId).setValue('doubleclick'); } Please help. Thanks and Regards, Dan Answer posted by Support on Nov 25, 2008 02:00 Unfortunately the browsers doesn't really separate double-click from single-click. |