facebook

Folder Tree

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

    NigelShaw
    Member

    Hi,

    i have a javascript folder set that i am including into my application. How can i retain the tree? for example-

    Here is the folder tree

    the folder called FullScreenMusic needs to remain like this. When i add references into the app for script, it changes to this-

    <script type="text/javascript" src="jquery.min.js"></script>
        <script type="text/javascript" src="ttwFullScreenMusic.js"></script>
        <script type="text/javascript" src="soundmanager2.js"></script>

    when i need it to be like this-

        <script type="text/javascript" src="jquery.min.js"></script>
        <script type="text/javascript" src="FullScreenMusic/ttwFullScreenMusic.js"></script>
        <script type="text/javascript" src="FullScreenMusic/Scripts/src/soundmanager2.js"></script>

    i have placed the whole FullScreenMusic folder into the root of the appication but it makes no difference. Because of this change, my SWF file cannot be referenced so it goes blank

    thanks

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

    Hi Nigel,

    What I would do is include these external js file using code in runtime:

    phoneui.documentReadyHandler = function()
    {
    $("head").append($("<script type="text/javascript" src="FullScreenMusic/ttwFullScreenMusic.js"></script>"));
    }

    Hope this is helpful for you.

    #332621

    NigelShaw
    Member

    Hi

    thanks for that. I placed the code in the custom.js then opened it in DW but it shows an error on that specific line. I have attached my whole custom file for reference?

    thanks

    /**
     * Notification that the UI is about to transition to a new page.
     * Perform custom prepage-transition logic here.
     * @param {String} currentPageId 
     * @param {String} targetPageId 
     * @returns {boolean} true to continue transtion; false to halt transition
     */
    phoneui.prePageTransition = function(currentPageId,targetPageId) {
      // add custom pre-transition code here
      // return false to terminate transition
      return true;
    }
    
    /**
     * Notification that the UI has transition to a new page.
     * 
     * @param {String} newPageId 
     */
    phoneui.postPageTransition = function(newPageId) {
      
    }
    
    /**
     * Notification that device orientation has changed. 
     * 
     * @param {String} newOrientation 
     */
    phoneui.postOrientationChange = function(newOrientation) {
      
    }
    
    /**
     * Called when document is loaded.
     */
    phoneui.documentReadyHandler = function()
    {
    $("head").append($("<script type="text/javascript" src="fullScreenMusic/soundmanager2/script/soundmanager2.js"></script>"));
    $("head").append($("<script type="text/javascript" src="FullScreenMusic/ttwFullScreenMusic.js"></script>"));
    }
     
            /**
             * These are soundManager settings. There
             * is no need to change them unless you have
             * read the soundManager documentation
             * **/
    
            soundManager.flashVersion = 9;
            soundManager.useHighPerformance = true;
            soundManager.wmode = 'transparent';
            soundManager.useFastPolling = true;
            soundManager.url = 'fullScreenMusic/soundmanager2/swf/';
            soundManager.debugMode = false;
        
    
    
            /**
             * Fullscreen music initialization
             * Always make sure this call is wrapped in
             * soundManager.onload to ensure all dependencies are loaded
             * */
    
            soundManager.onload = function()
            {
                $('.playlist').ttwFullScreenMusic({style:'fullscreen'});
            }
    
    
    }
    
    
    
    #332622

    NigelShaw
    Member

    Hi

    i changed this

    $("head").append($("<script type="text/javascript" src="fullScreenMusic/soundmanager2/script/soundmanager2.js"></script>"));
    $("head").append($("<script type="text/javascript" src="FullScreenMusic/ttwFullScreenMusic.js"></script>"));

    to this (removing the””)

    $("head").append($(<script type="text/javascript" src="fullScreenMusic/soundmanager2/script/soundmanager2.js"></script>));
    $("head").append($(<script type="text/javascript" src="FullScreenMusic/ttwFullScreenMusic.js"></script>));

    and the error disappeared however, it doesn’t update in the compile

    thanks

    #332623

    Hi Nigel,

    Apologies I goofed up.

    Please use:

    $(“head”).append(‘<script type=”text/javascript” src=”FullScreenMusic/ttwFullScreenMusic.js”></script>’);

    #332655

    NigelShaw
    Member

    Hi Octavio

    sorry, it still doesnt work for me. O have placed this code into the custom.js file but when i compile it and view the source code, it does not change the script type path to what i need 🙁

    could you please check my js file above to see if there seem to be any errors?

    thanks

    Nigel

    #332813

    Hi Nigel,

    As you posted another thread with info that you already built your app, I guess that you resolved this problem, am I right? Let me know if you’re still having this problem.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Folder Tree

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