By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,984 Members | 2,832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,984 IT Pros & Developers. It's quick & easy.

javscript error 5003:cannot assign to a function result !! cant get rid of it!

P: n/a
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[i];
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?

Jan 20 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
replace: this.load() = function() {
with: this.load = function() {

JsD

Jan 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.