There occurs a javascript error in IE8 ("An exception occurred") when using 
validation=true on struts form tag and having an validation error in the 
browser. In Firefox there's no problem. Other browsers not tested. Using Struts 
version 2.1.8.1.
The reason is in the function 'findWWCtrlNode' in validation.js

The line "for(var elem in enclosingDiv.getElementsByTagName("div"))" doesn't 
work correctly.
Replacing this line with something like

var elems = enclosingDiv.getElementsByTagName("div");
for(var i = 0; i < elems.length; i++) {
    var elem = elems[i];
    ...
}

fixes the problem.
Same for the "for(var elem in enclosingDiv.getElementsByTagName("span"))" loop 
in the same function.

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to