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 Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,107
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      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 Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    411
    Vote Rating
    37
    shepsii has a spectacular aura about shepsii has a spectacular aura about

      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