facebook

Creating a global function

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #324854 Reply

    Agraffiti
    Member

    Hi wayne/other forum browsers.
    In my webapp, I have a calendar page. To set all the dates on the calendar according to the current date or the selected month & year, I coded a function. However, I need to call this function from practically everywhere, like when the app starts up (in the “phoneui.documentReadyHandler = function()” function) and from within the app itself when users press certain buttons. Where should I put this function in the code? Would I just add it into the _custom.js file? And do I need to add anything like “public” in front of the function?

    Thanks for the help!

Viewing 1 post (of 1 total)
Reply To: Creating a global function

You must be logged in to post in the forum log in