Hi,
We have a problem with gx_event.cancel() function of ApplinX (version 5.5.2.0038) when we try to stop or prevent the page refresh by pressing a function key, in particular the ENTR key.
We have a jsp page with jQuery into an ApplinX application and when pressing ENTR we want to run a webservice with jQuery without releasing the function key against the Host and without refreshing the jsp.
The problem is the gx_event.cancel () function doesn’t seem to work. We want to press ENTR and invoke the WebService and modify the information returned in the page with the result of webservice without refreshing the page.
Despite the function gx_event.cancel () is called, the page is submited, and we lose all the information we had changed in the page. We do not know how to prevent the submit event in the page.
Can someone tell us how to do when we press ENTR key run some javascript function without refreshing the jsp? Why gx_event.cancel() does not prevent the page refresh? Could this be a bug in ApplinX?
function pageOnKeyDown(gx_event){
if (gx_event.keyCode==GXKeyCodes.ENTER){ // = 13
invokeWebServiceJQuery();
gx_event.cancel();
}
}
Any idea is welcome.
Thanks in advance