1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    13
    Vote Rating
    0
    surajan is on a distinguished road

      0  

    Default extjs display confirmation form upon login

    extjs display confirmation form upon login


    I am trying to modify someone else's extjs code and I am kinda new to the forum
    Basically when a username/password is validated the dashboard.js is called which is included in index.php. Now what I need to do is after the username/password is validated I need another form to popup asking for confirmation number. This does not need to be validated(just check for empty string), just entered in the form and I need to save it in a session.

    //index.php
    <script>
    Ext.onReady( function() {

    Web.ip = '<?php print $_SERVER["REMOTE_ADDR"]; ?>';

    var sessionInfo = Web.getCookieInfo();
    if( sessionInfo ) {
    Web.Dashboard.init();
    Web.user = sessionInfo;

    Web.Dashboard.loadDefault();
    } else {
    Web.Login.init();
    Web.Dashboard.init();
    }
    });
    </script>

    /
    /dashboard.js
    Web.Dashboard = function() {

    var contentPanel = new Ext.Panel({
    region: 'center',
    layout: 'fit',
    margins: '0 5 5 0',
    border: true,
    html: ''
    });

    return {

    init: function() {
    ........
    }
    }
    }();



  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,582
    Vote Rating
    434
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Ext JS 3 or 4?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread