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 User
    Join Date
    Aug 2009
    Posts
    2
    Vote Rating
    0
    nik206 is on a distinguished road

      0  

    Default Ext DirectPack and DirectStore

    Ext DirectPack and DirectStore


    Hi all!!! If it is not difficult maybe someone of developers Ext or users post here some simple example how to use ExtDirect (Pack) and DirectStore
    My problem is:
    I use default method calling methods on server side with php language and everything is ok.
    But i try to implement a DirectStore layer between server side and My form and get errors.
    This error getting up when i try to load data from serverside function.
    There is my example:

    Ext.ss.APIDesc.enableBuffer = 100;
    Ext.Direct.addProvider(Ext.ss.APIDesc);

    Ext.QuickTips.init();
    var temp = new Ext.data.DirectStore({
    autoLoad: true,
    paramsOrder: '',
    directFn: Ext.ss.login.LoadDefaultUser,
    root: 'username',
    fields:[{name:'username'}]
    });

    and on server side function is realized like Direct (Pack) is needed:

    class login{
    /**
    * @formHandler
    * @remotable
    */
    function LoadDefaultUser(){
    $response['success'] = true;
    $responce['username'] = "user12345";
    return $responce;
    }
    }

    If it is not difficult to answer to beginning ext users pleas post some working example with comments.
    PS:
    Sorry for my English))))

  2. #2
    Sencha User
    Join Date
    Jul 2007
    Posts
    21
    Vote Rating
    0
    fausastu is on a distinguished road

      0  

    Default


    PHP Code:
    class login{
    /**
    * @formHandler
    * @remotable
    */
    function LoadDefaultUser(){[INDENT]$response['success'] = true;
    /* Do you had chaged this */
    $responce['username'] = "user12345";
    /* for this ? */
    $response['username'] = "user12345";
    /* note you're using $response and $responce vars in your code) */
    return $responce;[/INDENT]}


  3. #3
    Ext User
    Join Date
    Aug 2009
    Posts
    2
    Vote Rating
    0
    nik206 is on a distinguished road

      0  

    Default


    Yes, thank you. but it doesn't resolve my problem.
    For debugging i use firebug and error that it shows is:
    form.getAttribute is not a function
    var isUpload = String(form.g...oLowerCase() == 'multipart/form-data',

    i think that i didn't set some attribute to DataStore. if so maybe someone knows what?

Thread Participants: 1