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
    Sencha User
    Join Date
    Mar 2013
    Location
    Mexico
    Posts
    2
    Vote Rating
    0
    templek is on a distinguished road

      0  

    Default Unanswered: Load another form after a Successful Login

    Unanswered: Load another form after a Successful Login


    I am a new on the Sencha Architect and sencha touch , trying to learn this Framework, I got this example from the internet, I have done all checking on my PHP code and it is working well, What i need to do is As soon as a User is valid i need to send him to another Form, Here is my code on the Login button tap :

    But it does not take me to the factForm

    var form = button.up('formpanel'), // Login form
    values = form.getValues(), // Form values
    mainView = this.getMainView(), // Main view
    loginPanel = this.getLoginPanel(), // Login and register buttons


    // Success
    var successCallback = function(resp, ops) {




    if(resp.responseText==";OK"){
    // Go back
    mainView.pop();


    // Hide login panel
    loginPanel.hide();


    var factForm = Ext.create('widget.factform'); // Create Form Factura


    mainView.push({
    xtype: "factform",
    title: "Clientes"
    });


    }
    else{
    Ext.Msg.alert("Alerta", resp.responseText);
    }


    };


    // Failure
    var failureCallback = function(resp, ops) {


    // Show login failure error
    Ext.Msg.alert("Login Failure", resp);


    };




    // TODO: Login using server-side authentication service
    Ext.Ajax.request({
    url: "http://localhost/DoctorFactura/php/func/chkusr.php",
    params: values,
    method:"POST",
    success: successCallback,
    failure: failureCallback
    });

  2. #2
    Sencha - Architect Dev Team
    Join Date
    Jan 2009
    Location
    Frederick, Maryland
    Posts
    741
    Answers
    54
    Vote Rating
    30
    jminnick will become famous soon enough jminnick will become famous soon enough

      0  

    Default


    Why not use the Login/Register Template as a starting point? It was developed specifically for Architect. You'll see it when you hit New Project.
    Jason Minnick
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Mar 2013
    Location
    Mexico
    Posts
    2
    Vote Rating
    0
    templek is on a distinguished road

      0  

    Default


    Actually that is what i did, i took that template as a starting point, But as it Only has two forms, I need one wher I am going to do all the User operations. How do i call factform , here is what i did, But it does not Work..... mainView.push({xtype: "factform",title: "Clientes"});

Thread Participants: 1

Tags for this Thread