include files



  • Hi
    Is it possible to include an external file that contains both onInit and onTimer functions?

    Generally, in my main code (onInit), I try to keep it short and throw every part in external files...
    If I want two separated parts, do I have to use two separated .js? like one in the onInit and the other in the onTimer?

    It is certainly basics but I can't catch it...
    Thanks



  • Kind of. In your external file create a function called onInitCB and then call that function in your main onInit callback once you've included the file. Do the same for the onTimer callback.



  • Thanks, David! I'm on it...


Log in to reply
 

4
Online

468
Users

1.6k
Topics

11.8k
Posts