facebook

Problem with customising my App / Code

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

    murmeltier
    Member

    Hey guys !

    I nearly finished my first app with MobiOne, but as always at the end, there is a problem.
    I created the Page “News” with MobiOne and edited the “news-_custom.js” and “news_custom.css” files (because I want to integrate an RSS feed). After editing these two files I linked it to my “Home” Design.

    And now the problem:
    If i run “Home” in MobiOne and try to click on “News” my customised code doesn’t work. But when i directly use “News” (without using “Home” before) it works with my customised code.

    So what’s the problem? Do you have any ideas? I’ve tried everything and now I’m a bit helpless.
    I hope somebody can help me with these (probably stupid) problem 🙂

    “Home” Design

    “News” Design when I run it from “Home”


    “News” Design when I run it directly from MobiOne, without using “Home”

    Thank you and greetings from Switzerland,
    murmeltier

    #341548

    Proffie
    Member

    first, I am not sure, if you can edit anything in the .css file without loosing it the next time you run the test center….as far as I know, the only thing you can edit is the xyz_custom.js file
    the second thing is, you need to put everything in the home_custom.js file. have a look at the generated www folder and you will see in the HTML file from home, that “News” is a substructure from “Home”, not a seperate pice. if you see in “News”, home information will probably miss.

    #341553

    Hi murmeltier,

    A mobione visual design has a main or startup screen (.mobi). All code generation should start from this main screen.

    Code generation creates code for the active Visual Designer into the same directory as the active .mobi file. It creates a subdirectory with the same name as the design file with the suffix _www. In this directory a file named <mainfilename>_custom.js is created. Developers should add their custom javascript functionality to the _custom.js file.

    If you decide to Run in Test Center/Web SIM any design that is not the main screen then the code-generator will create the a similar _www directory structure and will have only the javascript code in the actual design.

    #341582

    murmeltier
    Member

    Hiya 🙂

    Thank you for your advices! It works and I’m really happy, I would never have found that problem..

    Have a nice Weekend!

    #341620

    Hi murmeltier,

    Thanks for following up. Glad to help. Closing thread.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Problem with customising my App / Code

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