0 Replies Latest reply on Mar 9, 2007 12:25 PM by kelly goedert

    callback function parameter

    kelly goedert Apprentice

      Hi all,

      this may not be the right place to ask but there it goes...

      If I have js functions like this in the example on the docs

      function sayHello() {
      var name = prompt("What is your name?");
      Seam.Component.getInstance("register").sayHello(name, sayHelloCallback);
      }

      function sayHelloCallback(result) {
      alert(result);
      }

      How can I pass extra parameters to the callback function?

      Thanks

      Kelly