1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    3
    Vote Rating
    0
    nipponese is on a distinguished road

      0  

    Default Unanswered: Getting started with Touch 2.1 doc: How do I apply these examples?

    Unanswered: Getting started with Touch 2.1 doc: How do I apply these examples?


    Hello, I am just starting Sencha Touch dev and trying to understand how to apply these API examples.

    Reading http://docs.sencha.com/touch/2-1/#!/guide/getting_started, I am am not sure how to apply the Components examples is http://docs.sencha.com/touch/2-1/#!/api/Ext.Component

    F
    or example, the getting_started doc tells me to start editing the Main.js view, but adding

    var panel =Ext.create('Ext.Panel',{...});Ext.Viewport.add(panel);to the Main.js breaks it every time. Where exactly do I place these snippets? I'm not sure how to get started here.

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,169
    Vote Rating
    28
    Answers
    83
    jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough

      0  

    Default


    Are you familiar with JavaScript?

    Jay Garcia @ModusJesus || Modus Create co-founder
    Ext JS in Action author
    Sencha Touch in Action author

    Get in touch for Ext JS & Sencha Touch Touch Training

    We are also working on Video-based Sencha Touch training: Check it out here.

  3. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    3
    Vote Rating
    0
    nipponese is on a distinguished road

      0  

    Default


    Yes, but not in an MVC framework, and no experience with Ext.js

  4. #4
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,169
    Vote Rating
    28
    Answers
    83
    jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough

      0  

    Default


    OK. Are you familiar with how the Sencha Class system works?

    I'm trying to understand where the failure is so I can point you to the right place. I don't want to just give you the answer. What will happen is you'll have a billion more questions after that .

    Here's what I suggest:
    - Learn the component basics
    - Learn the Sencha Class System
    - Build a simple Sencha Touch application using MVC while learning at the same time.

    Jay Garcia @ModusJesus || Modus Create co-founder
    Ext JS in Action author
    Sencha Touch in Action author

    Get in touch for Ext JS & Sencha Touch Touch Training

    We are also working on Video-based Sencha Touch training: Check it out here.

  5. #5
    Sencha User
    Join Date
    Jan 2013
    Posts
    3
    Vote Rating
    0
    nipponese is on a distinguished road

      0  

    Default


    Thanks for taking this on.

    I am just having a hard time even getting started with simple examples in the Touch framework like:

    var panel =Ext.create('Ext.Panel',{ html:'This is my panel'});Does this need to go in app.js? I have the framework installed and am getting the Hello World app, just not sure where to go after that.