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

Discussion in 'Javascript' started by shruds, Jan 20, 2006.

  1. shruds

    shruds Guest

    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?
     
    shruds, Jan 20, 2006
    #1
    1. Advertising

  2. replace: this.load() = function() {
    with: this.load = function() {

    JsD
     
    Java script Dude, Jan 20, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mariano Drago

    Cant get rid off viewstate

    Mariano Drago, Apr 8, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    492
    Mariano Drago
    Apr 9, 2004
  2. Nagaraj
    Replies:
    1
    Views:
    888
    Lionel B
    Mar 1, 2007
  3. dost
    Replies:
    5
    Views:
    245
    Daniel Pitts
    Nov 28, 2009
  4. Michael Tan
    Replies:
    32
    Views:
    1,021
    Ara.T.Howard
    Jul 21, 2005
  5. Iceberg

    problem 5003 (WILL_NOT_PERFORM)

    Iceberg, May 17, 2005, in forum: Perl Misc
    Replies:
    3
    Views:
    481
    Marc Popp
    May 18, 2005
Loading...

Share This Page