Results 1 to 5 of 5

Thread: Loading grid with remote data

  1. #1
    Ext User
    Join Date
    Nov 2007

    Default Loading grid with remote data

    Guys, I'm baffled by how to get the grid to accept data (XML) sent via PHP executing on the same server.

    If I tell my Store to use
    url: 'approvals.xml'

    it works fine and the grid shows data- BTW that XML file is a direct lift of the output returned by the PHP code.

    If I create the store as follows:

    var myproxy = new {url: 'http://localhost:8089/mc/approvals/approvalsxml.php'} );
    var ds = new{
    // load using HTTP
    proxy: myproxy ,
    //url: 'approvals.xml',
    // the return will be XML, so lets set up a reader
    reader: new{

    record: 'approval'
    }, Approval),

    sortInfo:{field:'opp_ref_no', direction:'ASC'}

    then I get a blank grid, even though Firebug shows me that data has been returned as I expected.

    Am I missing something very obvious?

  2. #2
    Ext User
    Join Date
    Jul 2007


    Please use the php or the code tags when posting code, it makes it easier to view it and offer help.

    Please post what the firebug console shows for the response when you use the XML file that you say works and the php file that you say does not work.

    Also please repost your js file inside code tags or php tags.

    You might just want to reply with two posts. One post have it be the js file and the firebug response that works. Make the other post the js file and the response that does not work.

  3. #3
    Sencha User
    Join Date
    Mar 2007


    Did you set the right content-type for the response?

  4. #4
    Sencha User's Avatar
    Join Date
    Mar 2007
    DC Area =)


    Just an FYI, JSON is much faster to parse than XML. Not too sure if you considered it yet. Just thought i'd pass it along

  5. #5
    Sencha User hendricd's Avatar
    Join Date
    Aug 2007
    Long Island, NY USA


    I believe your main page would also need to be served up from port:8089.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.

    Got Sencha licensing questions? Find out more here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts