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
    806
    Answers
    57
    Vote Rating
    31
    jminnick has a spectacular aura about jminnick has a spectacular aura about

      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

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