Uncaught Typeerror: Undefined Is Not A Function Java Scripts
Solution 1:
This is most likely happening due to a browser "feature" which creates global variables corresponding to each element on your page, with the element's ID as the variable name.
If you have an element on your page with the ID correlativo
(which you probably do since you're performing getElementById('correlativo')
) this would effectively overwrite your declaration of function correlativo ...
, causing it to not exist when you try to execute it from guardarOt
.
TLDR: Change the name of your correlativo
function to something else and it should work fine.
Solution 2:
You have a function and a variable with the name correlativo
. Change one of those.
Also you have nuevoAjax
which is not defined in the code provided. Make sure that this is a function. Not a variable.
Solution 3:
You must be missing nuevoAjax.
function nuevoAjax(){
var xmlhttp=false;
try {
mlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
};
Post a Comment for "Uncaught Typeerror: Undefined Is Not A Function Java Scripts"