Results 1 to 2 of 2

Thread: Ajax Request in pushed Panel

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default Unanswered: Ajax Request in pushed Panel

    Hi,


    I am trying to load Data into a Panel which gets pushed on a Navigation.View, but in the Chrome Developer Tools there is no request sent. Is this the default behaviour or is something wrong with my code.


    Controllermethod:
    Code:
     showDetails: function(list, index, element, record){
            this.getDictionary().push({
                xtype: 'detailPanel'    
            });
        }

    DetailPanel:
    Code:
    Ext.define('DetailPanel', {
        extend: 'Ext.Panel',
        xtype: 'detailPanel',
    
    
        store: {
            autoLoad: true,
            model: "User",
            proxy: {
                type: 'ajax',
                url: 'content.json',
                reader: {
                    type: 'json',
                    rootProperty: 'Content'
                }
            }
        },
    
    
        html: '<h1>I can see this Message</h1>'
    });
    Thank you

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,339
    Answers
    3887
    Vote Rating
    1297
      0  

    Default

    Ext.Panel doesn't have a store config so a store instance won't be created. You are trying to do something outside what the framework does so you will need to handle these sort of uses.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

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

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

Tags for this Thread

Posting Permissions

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