View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005508 | OXID eShop (all versions) | 3.2. HTML, CSS, JavaScript | public | 2013-11-07 15:05 | 2023-11-22 15:25 |
Reporter | leofonic | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 4.6.6 revision 54646 | ||||
Summary | 0005508: variant selection does not work in IE8 | ||||
Description | oxajax.js produces an error in ie8 when selecting a variant. | ||||
Additional Information | Possible fix: in oxajax.js replace the line keys.sort().forEach( function( i ) { aInputs[i] = inputs[i]; } ) with for ( var i in keys.sort() ) { aInputs[keys[i]] = inputs[keys[i]]; } | ||||
Tags | IE | ||||
Theme | Azure | ||||
Browser | Internet Explorer | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
has duplicate | 0005733 | closed | jurate.baseviciene | can't select variants in IE8 |
|
I would propose by fixing javascript for that browser instead of making the js supporting more legacy: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach |
|
Well OK but there is really no need to use forEach imho as there are a couple of alternatives. |
|
This worked for me: if ( !Array.prototype.forEach ) { Array.prototype.forEach = function(fn, scope) { for(var i = 0, len = this.length; i < len; ++i) { fn.call(scope, this[i], i, this); } } } Taken from: http://stackoverflow.com/questions/14827406/javascript-foreach-function-does-not-work-in-ie |
|
This piece of code is no longer in use |