facebook

using multiple xxx_custom.js files

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

    m12m345m
    Member

    i’ve create multiple _custom.js files for showmarker_custom.js, dynlist_demo_custom.js, etc so i have 5 separate ones. how do I do i combine them to get them to work when i run my app. i tried to move them to the folder that is created when you test it in the center, the xxxx-www folder, then open the, in my case, the index page and add the tags <script type=”text/javascript” src=”xxxx_custom.js”></script> for each one in the header with the other one, but only one will work at a time.

    Am i doing something wrong, how do i get multiple _custom.js to work?

    thanks

    #339964 Reply

    Brandon
    Member

    You can include any addition JS files using the Additional Javascript area in the main screens properties.

    #339968 Reply

    m12m345m
    Member

    ok, so i click on my main screen, go to the right click on javascript librairies and click on add correct? if so i’m still not having success.

    #339984 Reply

    Brandon
    Member

    Yes that should be all you need to do. Im not sure if it matters but I always add them to the main page, even if they are used on a different one.

    Are they not getting added? or returning errors? what seems to not be working with it…

    #339986 Reply

    m12m345m
    Member

    so i attached the 2 of the files. so if i add both of them its like one overwrites the other. so either the map displays or either the list displays. no errors, they are not rendering. if i only use 1 then it renders correctly, if i try to use both, only 1 renders.

    so i put the list by itself and it worked fine, i added the map, and only that rendered the list just showed the XXXXXX> placeholder.

    Attachments:
    You must be logged in to view attached files.
    #340073 Reply

    m12m345m
    Member

    Cincy and ideas of what i’m doing wrong?

    #340267 Reply

    m12m345m
    Member

    does this work for anyone else?
    if yes can you share what you did or even the files, so i can try to recreate.

    thanks

    #340274 Reply

    Hi,

    I suspect that something is wrong with the organization of your files.

    Q: What is the main screen? Does it contain custom js code?
    Does it contain links to the secondary screens? If no, please try to add one of your secondary screens as Additional Project File. Do this just for one screen, if it works, you can do it for all your screens.

    But, it would be better if you put all your custom javascript code in only one _custom.js file, it will be easy to debug code when you need to do it.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: using multiple xxx_custom.js files

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