469,323 Members | 1,611 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

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 7398
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.