facebook

Run JavaScript

💡
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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #350361 Reply

    Nie Que
    Member

    Im making a web app using MobiOne.

    My concern is can I making functions on my custom.js.

    Does RUN JAVASCRIPT can run more than 1 js function???

    #350365

    Code_A
    Member

    You should put all your functions in the custom.js file and them call them through the run JavaScript window. You can call multiple functions by simply placing the calls one after another in the order you want them to fire.

    #350384

    Nie Que
    Member

    Im adding a function run javascript on my button but i want to add a function that will call the page of my multipage widget and execute both functions once the button is click.

    my question is. Is there any code for the function to call the page of my multipage widget??

    #350411

    Code_A
    Member

    You can navigate to a page within the multipage using the following code:

    phoneui.gotoMultiPagePage('m1-<your_screen>-multiPage1', 'SET_PAGE', 'm1-<your_screen>-page1', 'NONE');

    If you want to call functions too, just add the calls into the Run JavaScript window in the order you want them to happen:

    myFunction1();
    myFunction2();
    phoneui.gotoMultiPagePage('m1-<your_screen>-multiPage1', 'SET_PAGE', 'm1-<your_screen>-page1', 'NONE');
    myFunction3();
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Run JavaScript

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