1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    1
    Vote Rating
    0
    realdreamer is on a distinguished road

      0  

    Default Phone Gap with Sencha Touch 2 not working

    Phone Gap with Sencha Touch 2 not working


    Hi,

    I have added MDS Applaud plugin for eclipse to use the phone gap.

    PhoneGap API examples working when creating the Phone Gap Project.

    I am also having the option for using Sencha Touch, if I choose the option it prompts me to add the Sencha Touch Libraries in Project.

    Even if I choose the sencha touch docs folder, index.html file looks like the following way.


    <!DOCTYPE HTML>
    <html>
    <head>
    <meta name="viewport" content="width=320; user-scalable=no" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>PhoneGap Demo with Sencha Touch</title>
    <link rel="stylesheet" href="sencha/resources/css/sencha-touch.css" type="text/css">
    <script type="text/javascript" src="sencha/sencha-touch.js"></script>
    <script type="text/javascript" src="sencha/sencha-touch-debug.js"></script>
    <script type="text/javascript" charset="utf-8" src="cordova-1.9.0.js"></script>
    <script type="text/javascript" charset="utf-8" src="main.js"></script>
    <script type="text/javascript" charset="utf-8" src="phonegapdemo-w-sencha.js"></script>

    </head>
    <body>

    <header>

    </header>

    </body>
    </html>

    Please kindly help me to solve this issue.

  2. #2
    Sencha - Senior Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,949
    Vote Rating
    952
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    HTML Code:
    <script type="text/javascript" src="sencha/sencha-touch.js"></script>
    <script type="text/javascript" src="sencha/sencha-touch-debug.js"></script>
    Is bad, you should only load one of the JS files here. Past that for what you have provided, things look ok.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    521
    Vote Rating
    83
    shepsii is just really nice shepsii is just really nice shepsii is just really nice shepsii is just really nice

      0  

    Default


    Quote Originally Posted by realdreamer View Post
    I am also having the option for using Sencha Touch, if I choose the option it prompts me to add the Sencha Touch Libraries in Project.
    What do you mean by this?

    When I built with Phonegap, I just got the default phonegap project, pasted in my built production sencha touch app, and everything was fine from there.

  4. #4
    Sencha User
    Join Date
    Oct 2012
    Location
    Morocco
    Posts
    17
    Vote Rating
    0
    LAHMID is on a distinguished road

      0  

    Default


    I wait some solutions :p