Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6868119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:23:41+00:00 2026-05-27T03:23:41+00:00

I try to display some data in my Sencha touch application, but it doesn’t

  • 0

I try to display some data in my Sencha touch application, but it doesn’t work… and i can’t find what I’m doing wrong.

My webSiste return a json object who look like this

[{"name":"a","id":1}]

the script is getting the Json and display it:

    Ext.regApplication({ name: 'Command',
     phoneStartupScreen: 'phone-startup.png',
     phoneIcon: 'apple-touch-icon.png',
     launch: function(){
         this.viewport = new Ext.Panel(
         {
             layout: 'fit',
             fullscreen: true,   
             items: [{xtype: 'list',
                      itemTpl: new Ext.XTemplate('<div>{name}</div>'),
                      store: stores
                      }],
             dockedItems: [{xtype: "toolbar", 
                            dock: "top", 
                            title: 'MovieCommand', 
                            items: [{ui: 'back',text: 'back',handler: function(){}}]
                           }]
         });
     }
 });

 Ext.regModel('Commands', {
     fields: ['name', 'id'  ]

    });

var stores = new Ext.data.Store(
        {model: 'Commands',
         proxy: {type: 'scripttag',
                 url: 'http://localhost:8080/GTI710/commandes/liste.htm',

                  format: 'sencha',
                 reader:  new Ext.data.JsonReader ({
                        type: 'json',

                    })
                },

         });
stores.load();

I don’t have any error in the java script but nothing is displayed.
I just want to have the “a” displayed but it doesn’t work, I don’t know why…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:23:42+00:00Added an answer on May 27, 2026 at 3:23 am

    The ScriptTagProxy, which you are using, requires a response from server that’s composed of legitimate Javascript code.

    Specifically, the code is a callback function with the desired JSON data you what as the its first argument:

    someCallback([{“name”:”a”,”id”:1}]);

    The name of someCallback is generated dynamically by Sencha Touch when the request is sent. In other words, your attempt to store the response with a static file will not work.

    The name of someCallback is passed as a parameter in the GET request sent by Sencha Touch, the key of which defaults to callback.

    If you don’t want to have a web server as the data source, checkout Ext.util.JSONP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing JavaME LWUIT application which needs to display some data on map.
For some reason if I try to display data with the following code, I
'm using to Exhibit to, pretty simply, display some data on historical events and
I'm trying to use a DevExpress ASPxGridView to display some data. I need to
I need to display some tabular data in a JSF page. I need some
hi all: making a sample application in which we can store data on File
I have some data I need to display using MSChart, I am looking to
I'm trying to programmatically extract some data from this url: http://www.treasurydirect.gov/NP/BPDLogin?application=np The issue is
I have a problem using JSF to display some data in Facelets. I have
I’m trying to get a very quick and dirty animated display of some data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.