S
shalinmangar
Hi,
I have created two javascript classes in the following way.
//Script tag starts here
function ClassA(textBoxID, objB) {
this.textBox = document.getElementById(textBoxID);
this.objB = objB;
//some other methods
}
function ClassB() {
this.propertyA = "some value";
//some other methods
}
var objA = null, objB = null;
function body_onLoad() {
objB = new ClassB();
objA = new ClassA("aTextBoxID", objB);
}
//Script tag ends here
This approach runs as expected in Firefox but in Internet Explorer, I
get a script error "Invalid Argument" at a line number which contains
the script's closing tag.
Can anybody enlighten me about what may be the problem with this code?
Regards,
Shalin.
I have created two javascript classes in the following way.
//Script tag starts here
function ClassA(textBoxID, objB) {
this.textBox = document.getElementById(textBoxID);
this.objB = objB;
//some other methods
}
function ClassB() {
this.propertyA = "some value";
//some other methods
}
var objA = null, objB = null;
function body_onLoad() {
objB = new ClassB();
objA = new ClassA("aTextBoxID", objB);
}
//Script tag ends here
This approach runs as expected in Firefox but in Internet Explorer, I
get a script error "Invalid Argument" at a line number which contains
the script's closing tag.
Can anybody enlighten me about what may be the problem with this code?
Regards,
Shalin.