Calling a script include function inside it's script include.

rbuff
Tera Contributor

Hi All,

Im trying to call a script include function inside it's script include.   I've attempted it already with no results.  

I was wondering if it was even possible to do what I'm attempting in a script include?

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Justin,



Reference functions with this.functionName().



Example:



var foo = Class.create();


foo.prototype = {


      initialize: function() {


      },



  bar : function() {


  this.zip(5);


  },



  zip : function(num) {


  gs.info('num=' + num);


  }


      type: 'foo'


};


View solution in original post

5 REPLIES 5

Short and to the point, thanks Chuck!