1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    18
    Vote Rating
    0
    shadow_m is on a distinguished road

      0  

    Default ExtJS4 Loading formPanel from PHP

    ExtJS4 Loading formPanel from PHP


    I am trying to load formPanel from PHP (return Json)

    On ExtJS 3.2 it works, but not in ExtJS4

    Code:
    SettingsForm.getForm().load({
    url:'http://borsuko4/php/settings.php?action=showData', 
    success : function() {alert('success ');}
    });
    Can anybody help me with this???
    Thanks

  2. #2
    Sencha User juanb's Avatar
    Join Date
    Jun 2011
    Location
    usa
    Posts
    42
    Vote Rating
    1
    juanb is on a distinguished road

      0  

    Question


    Wich error are you getting on this? look at Firebug or google console and tell us more please.

  3. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    18
    Vote Rating
    0
    shadow_m is on a distinguished road

      0  

    Default


    firebug show me this error :

    this.model is undefined
    [Break On This Error] return this.model.prototype.fields.items;

  4. #4
    Sencha User juanb's Avatar
    Join Date
    Jun 2011
    Location
    usa
    Posts
    42
    Vote Rating
    1
    juanb is on a distinguished road

      0  

    Default


    seems like you have a problem with your ajax loader, may be you need to check your model def for the data loaded, check the AJAX example at: http://docs.sencha.com/ext-js/4-0/#!.../xml-form.html

  5. #5
    Sencha User
    Join Date
    Feb 2011
    Posts
    2
    Vote Rating
    0
    fulviocazzanti is on a distinguished road

      0  

    Default same problem with json

    same problem with json


    same problem with json

  6. #6
    Sencha User
    Join Date
    Mar 2008
    Location
    Salatiga, Central Java, Indonesia
    Posts
    4
    Vote Rating
    0
    soemi is on a distinguished road

      0  

    Default


    i have the same problem.
    can anyobody help us ?

  7. #7
    Sencha User juanb's Avatar
    Join Date
    Jun 2011
    Location
    usa
    Posts
    42
    Vote Rating
    1
    juanb is on a distinguished road

      0  

    Default


    Can you provide a non-working example?

  8. #8
    Sencha User
    Join Date
    Mar 2008
    Location
    Salatiga, Central Java, Indonesia
    Posts
    4
    Vote Rating
    0
    soemi is on a distinguished road

      0  

    Default [SOLVED]: you must create model first

    [SOLVED]: you must create model first


    json:
    PHP Code:
    ({"total":"1""hasil" : [{"id":"1","username":"admin","password":"123","nama":"Budi""lastLogin":"2012-05-18 23:13:07"}]}) 
    make model:
    PHP Code:
    Ext.define('mdlProfil',{
        
    extend:'Ext.data.Model',
        
    fields:[
            {
    name'id'type'int'mapping'id'},
            {
    name'username'type'string'mapping'username'},
            {
    name'nama'type'string'mapping'nama'},
            {
    name'password'type'string'mapping'password'},
            {
    name'lastLogin'type'string'mapping'lastLogin'dateFormat'd-M-Y'}
        ]
    }); 
    and then in form panel:
    PHP Code:
    var frmProfil Ext.create('Ext.form.Panel', {
    ...
    reader Ext.create('Ext.data.reader.Json', {
        
    model'mdlProfil',
        
    root'hasil'
    }),
    ... 
    don't forget to load:
    PHP Code:
    frmProfil.getForm().load({url'ProfilController.php'method'POST'params: {aksi'aksiInit'}}); 

  9. #9
    Sencha User
    Join Date
    Jan 2013
    Posts
    2
    Vote Rating
    0
    adfued90 is on a distinguished road

      0  

    Default load php on absolute form

    load php on absolute form


    hai soemi ,i try your code and it work,but i try on absolute layout browser (http://cdn.sencha.io/ext-4.1.1a-gpl/...t-browser.html ) it does not work. can you show some example ? the code :

    function getCombinationLayouts() {


    return {


    start: {
    id: 'start-panel',
    title: 'Start Page',
    layout: 'fit',
    bodyStyle: 'padding:25px',
    contentEl: 'start-div' // pull existing content from the page
    },


    absoluteForm: {
    title: 'Absolute Layout Form',
    id: 'abs-form-panel',
    layout: 'fit',
    bodyPadding: 15,
    items: {
    title: 'New Email',
    layout: 'fit',
    frame: true,
    items: {
    xtype: 'form',
    layout:'absolute',
    padding: '5 5 0 5',
    border: false,
    cls: 'absolute-form-panel-body',

    defaultType: 'textfield',
    items: [{
    x: 0,
    y: 5,
    xtype: 'label',
    text: 'From:'
    },{
    x: 55,
    y: 0,
    name: 'from',
    hideLabel: true,
    anchor:'100%' // anchor width by %
    }]


    }



    }
    }
    };
    }

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi