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 5985231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:30:00+00:00 2026-05-22T22:30:00+00:00

I have the following very simple Ext JS 4 script which is supposed to

  • 0

I have the following very simple Ext JS 4 script which is supposed to fetch two rows from an URL and display it in a Ext JS grid panel.

Ext.define('Entry', {
    extend: 'Ext.data.Model',
    fields: [
        {name: 'id', type: 'int'},
        {name: 'val' }
    ]
});

var store = Ext.create('Ext.data.Store', {
    model: 'Entry',
    proxy: {
        type: 'ajax',
        //url: '/admin/ext-list-searches', // does not work
        url: '/server.php',  // works
        reader: {
            type: 'json',
            root: 'entries'
        }
    },
    autoLoad: true      
});

var grid = Ext.create('Ext.grid.Panel', {
    store: store,
    columns: [  
        {
            text     : 'id',
            dataIndex: 'id'
        },
        {
            text     : 'val',
            dataIndex: 'val'
        }
    ],
    title: 'Test',
    renderTo: 'ext-content'
});

I tested it with two URLs:

  1. /server.php <- works
  2. /admin/ext-list-searches <-fails

Both URL return the identical content (along with an identical HTTP response header):

{"entries":[{"id":1,"user":"Chris"},{"id":2,"user":"Paul"}]}

Case 1 works fine:

screenshot_success

However, case 2 does not display anything:

enter image description here

The data is being properly loaded according to Firebug in both cases.

This does not make any sense to me. Are there any path-limitations I don’t know of?

I’ve seen that behavior in Chrome and Firefox 4. I am using Ext JS 4.0.1

  • 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-22T22:30:01+00:00Added an answer on May 22, 2026 at 10:30 pm

    By trial and error I was able to solve this problem. However my knowledge of Ext JS is to low to exactly know the reason.

    The difference between the two URLs was the response time. Whenever I added a delay to make server.php respond later it behaved the same way as the other URL.

    The way to fix it was to put the grid into a panel:

    var displayPanel = new Ext.Panel({
        width    : 650,
        height   : 300,
        layout: 'fit',
        renderTo : 'ext-content',
        items    : [ grid ]
    })
    

    This is somehow related with the loading indicator.

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

Sidebar

Related Questions

I have the following very simple Javascript-compatible regular expression: <script type=text/javascript id=(.+) src=([^]+)> I
I have the following very simple class which looks for the last known user
I have the following, very simple html page: <html> <head> <script type="text/javascript"> function alertSelection()
I have a very simple Java RMI Server that looks like the following: import
I have the following issue using java 1.4 I try to display a very
I have the following (very simple) ItemsControl: <ItemsControl Name=BlahList ItemsSource={Binding Blah}> <ItemsControl.ItemTemplate> <DataTemplate> <CheckBox
I have the following very simple form: <asp:UpdatePanel ID=ClaimRewardsForm runat=server> <ContentTemplate> <span class=largeBold>Select jacket
I have got the following very simple code: function init() { var articleTabs =
I have following, very simple, XML config for PHPUnit: <phpunit bootstrap=/_tests/TestAutoload.php> <testsuites> <testsuite name=Unit
I'm trying to build a very simple VPS control panel; i have the following

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.