mardi 31 mars 2015

Uncaught TypeError: undefined is not a function Chrome not working


Vote count:

0




I have an application launching an applet. When I try to click on the login button in Chrome I get the following error



applet.htm:54 Uncaught TypeError: undefined is not a function
engine.js:1262 console.trace()
engine.js:1262 dwr.engine._debug
engine.js:1263 Error: TypeError, undefined is not a function


Code applet.htm line 54(Uncaught TypeError: undefined is not a function) :



function initApplet() {
while(ctiApplet.isActive()==false) {

}


lines 1257 - 1281 of engine.js



/** @private Used internally when some message needs to get to the programmer */
dwr.engine._debug = function(message, stacktrace) {
var written = false;
try {
if (window.console) {
if (stacktrace && window.console.trace) window.console.trace();
window.console.log(message);
written = true;
}
else if (window.opera && window.opera.postError) {
window.opera.postError(message);
written = true;
}
}
catch (ex) { /* ignore */ }

if (!written) {
var debug = document.getElementById("dwr-debug");
if (debug) {
var contents = message + "<br/>" + debug.innerHTML;
if (contents.length > 2048) contents = contents.substring(0, 2048);
debug.innerHTML = contents;
}
}
};


Really can't understand why it is undefined. Its like it can't get a hold on the applet so doesn't realise its loaded. works on IE8. If anyone can shed any light on it.



asked 14 secs ago







Uncaught TypeError: undefined is not a function Chrome not working

Aucun commentaire:

Enregistrer un commentaire