Phonegap not loading javascript

2 posts, 0 answers
  1. Richard
    Richard avatar
    7 posts
    Member since:
    Mar 2012

    Posted 29 Aug 2012 Link to this post

    I switched my app over to Kendo from Jquery Mobile. It works on the desktop but when I compile it for IOS or Android the javascript doesn't load at all. Any clue what could be causing this?
  2. Richard
    Richard avatar
    7 posts
    Member since:
    Mar 2012

    Posted 29 Aug 2012 Link to this post

    Nevermind I had forgotten to add:

            <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
            <script type="text/javascript">
                function onBodyLoad()
                {                    
                    document.addEventListener("deviceready", onDeviceReady, false);
                }


                function onDeviceReady()
                {
                    // do your thing!
                }            
            </script>        
        </head>
        <body onload="onBodyLoad()">

    Once I added that it compiled fine for all platforms.
Back to Top