I am getting the following error when i run my web application in IE9. The application is using Struts and DOJO UI.
Development console is showing:
TypeError: Unable to get value of the property 'set': object is null or undefined
This error does not occur in FF or other browsers. I have looked at other solution to this issue and none seems to remedy my problem.
I have tried using tag in the head of my web page:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
The JavaScript which it is failing on:
require(["dojo/on", "dojo/dom", "dojo/_base/lang", "dojo/domReady!", "dojo/query","dijit/registry"],
function (on, dom, lang, query) {
$(document).ready(function () {
var addButton = dijit.byId('addName');
if(addButton){
addButton.on('click', function (evt) {
evt.preventDefault();
grid.addRecord('name');
});
}
});
Aucun commentaire:
Enregistrer un commentaire