This code does not work in Internet Explorer 8.
documenttab.query('.field,.button').forEach(function(c){c.setDisabled(false);});
I get error SCRIPT438: the object does not support the property or method 'forEach'
Ext has a forEach method. Where supported, it will defer its method:
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.Array-method-forEach
Ext.Array.forEach(documenttab.query('.field,.button'), function(c){ c.setDisabled(false); });
Mozilla also publishes code for methods that you can install near the top of your JS, and it will create them if they do not exist.
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach
I believe this should solve your problem.
vals = documenttab.query('.field,.button') for (i = 0; i < vals.length; i++) { vals[i].setDisabled(false); }
Source: https://habr.com/ru/post/920866/More articles:It's true? Android development based on Android AIR has no future - androidAdding Parameters to Dreamweaver Templates in SDL Tridion 2011 SP1 - tridionAndroid Video stops playing after several plays Error 1, 2147483648 - androidPartial view rendering in MVC 3 with Ajax boot image - jqueryAccelerometer data collection in background - iosHow to use PHP script in TCPDF? - htmlTable = Table versus table. Table (table) - axaptaC ++, how to distinguish a template for a container and its own type - c ++Tastypie filtering out many, many relationships - pythonThe is_container attribute failed when calling std :: set SFINAE - c ++All Articles