facebook

Java Script Methods not found on Multi Page iPhone App

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

    Pauldivaniii
    Member

    I have a multi-page application (multiple .mobi pages make up the application). About the fourth page in I have a page (cameratest.mobi) that accesses the phone’s camera to take a picture. The custom java script that accesses the camera is in the cameratest_custom.js file in camneratest-www folderin the application. When I run the app in Test Center all the files expected to get built are updated in their respective folders. However, when I navigate through the app to the cameratest.mobi screen pressing the picture button causes an error that tells me that the method my button is calling could not be found. The method is in cameratest_custom.js. And, the cameratest.mobi files runs fine when I run it as a stand alone application. What am I doing wrong?

    Thanks

    #334062

    Hi Pauldivaniii,

    when you run your main design file, the customize code on your secondary screens are not copied automatically to the <main-file>_custom.js file. Please add all the customize code from your secondary screens to the <main-file>_custom.js file.

    http://www.genuitec.com/support-genuitec/viewtopic.php?p=7778#p7778

    Also, you can see other explanation here:
    http://www.genuitec.com/support-genuitec/viewtopic.php?p=6485#p6485

    Hope this is helpful for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Java Script Methods not found on Multi Page iPhone App

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