- This topic has 9 replies, 5 voices, and was last updated 11 years, 2 months ago by
living.horses.
-
AuthorPosts
-
rick.gommersMemberHi all,
I have created a new screen, from which I want to view and edit the index.html
Whatever I try, I cannot generate these files. There’s no www folder created inside that project folder.
Two of my screens have a WWW folder, but for this specific screen it just doesn’t work.
How can I export this single .mobi file to HTML ?
Big thx in advance!
January 30, 2014 at 5:21 pm #346589
BrandonMemberMake sure you are setting the screen as a target design, otherwise it thinks its a secondary screen and wont generate the files
January 31, 2014 at 8:26 am #346603
rick.gommersMemberThx a lot man!
January 31, 2014 at 10:30 am #346620
rick.gommersMemberUpdate, as far as I can see this function is NOT working at this moment. There’s never a www folder generated for my other screens.
January 31, 2014 at 1:59 pm #346637
support-octavioMemberHi marcoevich,
Check if your generated files are in <.mobi path>/www/app-name
Also, if your .mobi file is not set as a startup screen it won’t generate files on main design dir.
February 8, 2014 at 10:14 pm #346968
living.horsesMemberHi, I just discovered the same problem.
(and I think that may be why I have been having problems with my coding).
Even if I set the file as Project Design, it does not create a www file in the same project file.
Instead it is creating it under C:\Users\Monika\AppData\Local\Temp\mobione_temp_files\ as 01297c38112b423cbb2949cfa7046e05\andFebruary 8, 2014 at 11:40 pm #346970
rick.gommersMemberHi Living.horses,
It seems that where are searching for something that doesn’t exist. According to this guide: https://www.genuitec.com/mobile/docs/workingWithGeneratedFiles/workingWithGeneratedFiles.html you can
only modify the -custom.js for your startup screen file. The -custom.js file for secondary screens is not used and will be overwritten when you generate files from your startup screen.
February 9, 2014 at 9:22 pm #346995
support-michaelKeymasterHi Guys,
I hope this additional info is helpful.
Background
In pre-2.5 the code generator created a www/ folder for both the primary startup design file – this is your PROJECT code base directory – and transient (temporary) folders for non-startup designs run in the simulator. These latter transient www folders are junk and should not have ever been visible to developers; they confused a lot of our users (uncool). Beginning with mobione 2.5 we wanted to fix this. Now only your startup design file will generate a www folder. When you run a non-startup file in the simulator, mobione now generates code to a tmp directory and deletes it when completed.The take-aways are:
Your project should have 1 and only 1 design file marked as the startup file (see the design’s root properties for the startup property).
– if you don’t set a startup file you will be warned by the code generator and the generated code will not be visible to you. If you have multiple startup files you will be warned.
MobiOne will generate the project’s code to a subdirectory named after the startup fileFebruary 17, 2014 at 5:50 am #347262
living.horsesMemberMine appears to be a bit of a hit miss.
If I start a new project, and save as to a folder, even after setting it as my Target Design, my generated files, sometimes, are created in my Local drive :users:My_PC:AppData:Local:Temp:mobione-temp-files
to over come this, I have been copying an existing project, and renaming it to use it.
EDIT:
I have just tried creating a new project, save as to new folder, set as target deisgn, generated files, and sub-folder www created in same folder.
appears to work now
April 5, 2014 at 8:32 pm #348605
living.horsesMemberdisregard my last comment, now again not working.
edit: I am running the latest release version 🙂
-
AuthorPosts