- This topic has 2 replies, 2 voices, and was last updated 12 years, 2 months ago by
TNADEV.
-
AuthorPosts
-
TNADEVMemberDear all,
How can i get the correct paths generated from Mobione?
Im adding custom Javascript resources “res/Code/…” and i want it to create paths in the html as below
<script type="text/javascript" src="Login.js"></script> <script type="text/javascript" src="Login_custom.js"></script> <script type="text/javascript" src="res/jquery-1.8.2.min.js"></script> <script type="text/javascript" src="res/iscroll.js"></script> <script type="text/javascript" src="res/phoneui.js"></script> <script type="text/javascript" src="res/spinningwheel.js"></script> <script type="text/javascript" src="res/Code/Button_Funcs.js"></script> <script type="text/javascript" src="res/Code/Data_Loader.js"></script> <script type="text/javascript" src="res/Code/Local_Storage.js"></script>
yet when i create the program it copies the three files into the root of the program and creates a new Html file like so, which means i have to hand edit it everytime….
<script type="text/javascript" src="Login.js"></script> <script type="text/javascript" src="Login_custom.js"></script> <script type="text/javascript" src="res/jquery-1.8.2.min.js"></script> <script type="text/javascript" src="res/iscroll.js"></script> <script type="text/javascript" src="res/phoneui.js"></script> <script type="text/javascript" src="res/spinningwheel.js"></script> <script type="text/javascript" src="Button_Funcs.js"></script> <script type="text/javascript" src="Data_Loader.js"></script> <script type="text/javascript" src="Local_Storage.js"></script>
Any way to make it respect my paths?
Thanks
support-michaelKeymasterI confirmed the issue you raise. This is the behavior of the code generator to copy all included resources to the <project>_www/ folder, regardless of if these resources already reside in under the www folder. I have opened an enhancement to discontinue copying resources that reside under the www folder and to use a relative path to them.
TNADEVMemberExcellent – i look forward to getting that update.
thanks for your help
-
AuthorPosts