S
shruds
i have the following code in a .jsp file:
<script language="JavaScript">
function TAB_LOADER() {
this.functions = new Array();
this.add = function(funct) {
this.functions[this.functions.length+1] = funct;
}
this.load() = function() {
for (var i=0; i<this.functions.length; ++i) {
var funct = this.functions;
funct();
}
}
return this;
};
</script>
<script language="JavaScript" src="Tabs2.js">
</script>
in Tabs.js i create a TABS_LOADER object using:
LOADER = new TAB_LOADER();
only to get a "cannot assign to a function result" error!!
wazzza problem?
<script language="JavaScript">
function TAB_LOADER() {
this.functions = new Array();
this.add = function(funct) {
this.functions[this.functions.length+1] = funct;
}
this.load() = function() {
for (var i=0; i<this.functions.length; ++i) {
var funct = this.functions;
funct();
}
}
return this;
};
</script>
<script language="JavaScript" src="Tabs2.js">
</script>
in Tabs.js i create a TABS_LOADER object using:
LOADER = new TAB_LOADER();
only to get a "cannot assign to a function result" error!!
wazzza problem?