AwareIM/LogonAdmin.html copied to logonGuest.html
My chages are in red
************************* ITEMS *****************
items:[
{
hidden: true,
fieldLabel: 'Business space',
name: 'domain',
id: 'domain',
value: '<myDomain>',
allowBlank: false
},
{
hidden: true,
fieldLabel: 'User name',
name: 'userName',
value: 'guest',
allowBlank: false
},
{
hidden: true,
fieldLabel: 'Password',
name: 'password',
inputType: 'password',
value: 'guest',
allowBlank: false
},
{
[color=red] hidden: true,[/color]
fieldLabel: 'Testing mode',
name: 'testingMode',
xtype: 'checkbox',
[color=red]checked: true[/color]
}[color=red],
{ hidden: true,
fieldLabel: 'Dynamic',
name: 'dynamic',
id: 'dynamic',
value: 'true',
xtype: 'checkbox',
checked: true
}[/color]
[b] ],
[/b]
********************* END ITEMS ******************
**********************Ext.Window*********
// This just creates a window to wrap the login form.
// The login object is passed to the items collection.
var win = new Ext.Window({
[color=red] // layout:'fit',
// title:'Please Login',
// iconCls: "login-button",[/color]
[color=red]width:90,
height:50,[/color]
[color=red] html: '<div style="text-align:middle">Please wait...</div>',[/color]
closable: false,
resizable: false,
[color=red] // plain: true,[/color]
[color=red] // items: [login][/color]
});
win.on ("show",[color=red] function () {
login.getForm ().submit();
}[/color]);
// ******* ORIGINAL ******
// win.on ("show", function () {
// var f = login.getForm ().findField ('domain');
// Ext.defer (f.focus, 100, f);
// });
//
win.show();
});
This will populate the form & log you in automatically.
I'm aware logonGuest.aw exists. But this way you can create another heavily restricted access for someone without them requiring to log in manually.
I assume the 'dynamic' option allows for multiple 'guests' accessing the application
Any ideas or suggestions welcome.
Cheers