5 Replies Latest reply on Jun 25, 2006 12:26 PM by NSurveyor

    calling a function of an object

    Level 7
      If I have an object, and then create a function in this object, what syntax
      do I use to call this function?

      SEND_VOTE_OBJECT = new Object();

      SEND_VOTE_OBJECT.SEND_VOTE=function(){
      //function code
      }

      SEND_VOTE_OBJECT.SEND_VOTE();

      I thought this would work but it doesn't!

      What would be the correct syntax?

      Many thanks

      Dave