Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    36
    Vote Rating
    1
    healthformula is on a distinguished road

      0  

    Default How to load a data in form manually

    How to load a data in form manually


    In ExtJS 3 it was easy to load data into form. But it seems like in ExtJS4 things have changed little bit. I am trying to load a data manually something like in this example.
    http://dev.sencha.com/deploy/ext-4.0.../xml-form.html
    But with JSON. I am sending data in this format.
    PHP Code:
    {"name""foo""email""bar@foo.com"
    I am just trying to figure out a best way to this in MVC stylerom controller.
    It should not be that hard I think can anyone please give me any insight in this problem.

  2. #2
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    In Ext 4.x Ext.form.Panel uses JSON reader as default so you just call <form>.load() to load JSON data from server.
    If you use default reader, your JSON data must be in the form
    Code:
    {
        success: true,
        data: {"name": "foo", "email": "bar@foo.com"}
    }

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    36
    Vote Rating
    1
    healthformula is on a distinguished road

      0  

    Default


    Thank you very much for your reply. Can you please show how to configure form to load such data? Do I need to bind model or store with form? I am sure I have to but how to do it in extjs4.

  4. #4
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    Just call the load() method of your formPanel. Ex:
    Code:
    formPanel.load({
    	url: 'url to your json file',
    	waitMsg: 'Loading...'
    });

  5. #5
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    36
    Vote Rating
    1
    healthformula is on a distinguished road

      0  

    Default


    Thank you very much for your help. That indeed did the trick.

Thread Participants: 1