0 Replies Latest reply on May 25, 2015 1:26 PM by brendanT

    passing variable from cep panel to application

    brendanT Level 1

      I'm able to pass a variable from my cc apps to my extension by creating an event listener. Turning the data in to a string (with  .toSource() method). I then eval the data and have it back as an object (literal in my particular case).


      But what about passing a variable to my app ie. - evalScript('$._ext.artistPathFunc(5)') passes 5 to the function but x = 5;evalScript('$._ext.artistPathFunc(x)')" says object undefined. I've tried evalScript('$._ext.artistPathFunc(x.toSource())') but get the same result.Solutions? Thoughts?