471,857 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,857 software developers and data experts.

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

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
1 7479
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.

Similar topics

1 post views Thread by Vycka | last post: by
2 posts views Thread by =?Utf-8?B?S3Jpc2huYQ==?= | last post: by
2 posts views Thread by srilathaapi | last post: by
2 posts views Thread by sam.barker0 | last post: by
5 posts views Thread by Just Another Victim of the Ambient Morality | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.