Results 1 to 2 of 2

Thread: extjs display confirmation form upon login

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    13
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Ext JS 3 or 4?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •