TerraXML has an XSLTForms 1.0RC based search form that has an onkeydown
event that uses the enter key to submit the search request (see form
image)

 

 

When you press the enter key to perform the search in IE9, the website
would reload.

 

Turns out the keypress event was getting handled by XSLTForms, but it
was propagating to other windows in the app.   

The following change to xsltforms.js seems to have fixed this behavior.
I have not identified any ill-effects from doing this so far.

 

(xsltforms.js, line 5300)

XsltForms_input.keyPressActivate = function(a) {

this.keyPressCode = a.keyCode;

    

    /** Change put in by PV TerraXML to prevent ENTER key bleedthrough
on IE9 (See TV-238) */

    if (a.keyCode === 13) {

        if (a.stopPropagation) {

            a.stopPropagation();

            a.preventDefault();

        } 

        else {

            a.cancelBubble = true;

        }

    }

    /* END */

};

 

 

 

 

Paul Vanderveen

Chief Architect, Research and Development

 

 

1380 Forest Park Circle, Suite 100

Lafayette, CO  80026

p:  888-707-7846 x 221

 

<<image003.png>>

<<image004.jpg>>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to