I am trying to call a method from the constructor of my javascript constructor, is this possible and if so, I can\'t seem to get it working, any insight would be great! Than
Solution:
function ValidateFields(pFormID){
console.log("ValidateFields Instantiated");
var aForm = document.getElementById(pFormID);
this.errArray = new Array();//error tracker
this.CreateErrorList(); //calling a constructors method
}
ValidateFields.prototype.CreateErrorList = function(){
console.log("Create Error List");
console.log(this.errArray); //this is how to access the constructors variable
}
Hope this helps anyone who might have a question like this in the future.