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() {
........
}
}
}();