I have been in the Javascript override method for a while. the problem is that I got the onclick event handler on one of my controls, and I need to make some method before the event handler activates the actual method.
Suppose DGrid.Headerclik is activated for the onclick event.
And here is what I did
DGrid.Headerclik = handleinLocal;
therefore, whenever a user clicks on a grid, the control is controlled by the localization method. here I have to do some processing and then call the base Headerclik ().
function handleinLocal(){
}
but this does not work as expected. when calling DGrid.Headerclik () inside handleinLocal (), it invokes the handleinLocal () method recursively. But I need to call the base method ...
Is there a way to achieve this in JavaScript ??