Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I have another issue , completly diffrent one. Iam struggling to read the password enterted in dailogbox using starndered java script password read mechanisam on Mac.
Below is the snippet :
var dlg = new Window( windowResource);
dlg.group1.name.text = userName;
dlg.group1.password.active = true;
dlg.bottomGroup.applyButton.onClick = function ( ) { password = dlg.group1.password.text;;$.setenv("PW", password);this.parent.parent.close( 2 ); }
dlg.bottomGroup.cancelButton.onClick = function ( ) { cancelled = true; this.parent.parent.close( 2 ); }
dlg.show();
windowResource = "dialog {
orientation: 'column',
alignChildren: ['fill', 'top'],
preferredSize:[200, 130],
text: 'Login',
margins:15,
group1: Panel {
orientation: 'row',
alignChildren: 'right',
margins:15,
text: ' Login ',
st: StaticText { text: 'User ID:' },
name: EditText { text: '', characters: 25, justify: 'left'}
st3: StaticText { text: 'Password:' },
password: EditText { text: '', characters: 25, justify: 'left', properties: {noecho:'true'}}
}
bottomGroup: Group{
cancelButton: Button { text: 'Cancel', properties:{name:'cancel'}, size: [120,24], alignment:['right', 'center'] },
applyButton: Button { text: 'Apply', properties:{name:'ok'}, size: [120,24], alignment:['right', 'center'] },
}
}
Copy link to clipboard
Copied
dlg.group1.password.text; is always coming as empty string.