facebook

Custom javascript file on two Pages

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #323766 Reply

    FabioChen
    Member

    Hi,

    I’ve created an App with 2 pages and their respective page#_custom.js files. They are tied together by an image button.

    I am able to build and run page 2 by itself with no problems.

    When I build from page 1, page 2 does not work.

    Seems like page2_custom.js is not set during the page 1 build.

    The only way I can make page 2 run correctly from page 1 is to manually include the page2_custom.js inside page1.html and include page2_custom.js in the file/data during the page 1 build.

    Is this true? If not, how can I do it?

    Thanks for the assistance,

    FC

    #323788 Reply

    Albatros78
    Participant

    Hello Fabiochen,

    If you have x pages into your project, you need to link each page with other one inside Mobione GUI interface
    And when you have linked all pages into GUI, you need to create html code just from the first .mobi file of project (the starting page of your project)

    Automatically mobione will generate ONE complete html file including all pages of your project
    And obviously you will have also ONE yourproject_custom.js file for your project

    It’s the main _custom.js file for all the project, and you need to modify this file only

    Hope this helps

    #323879 Reply

    FabioChen
    Member

    Thanks Albatross for the reply.

    … It’s that the IDE does such a great job merging the HTML from different pages, that I was wondering (hoping) whether that was also the case for the javascript. 😉

    FC

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Custom javascript file on two Pages

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