3 Replies Latest reply on Jun 3, 2016 7:12 AM by Heimdaal

    Passing data to jsx function returns undefined

    Heimdaal Level 1

      Probably a noob question but why do I get undefined when passing data to a jsx function?

      Javascript

      var csInterface = new CSInterface();
      csInterface.evalScript("myFunc('ack')");

       

      ExtendScriptfunction

      myFunc(property){

           alert("ran myFunc- getting value from property: " + property);

      }

       

      Things work fine if I just do a normal functionc all without passing a variable.