PDA

View Full Version : Ext.MessageBox.promt login box, multiline



Nano
6 Oct 2007, 2:29 PM
Hello,

I'm trying to make a two field dialog box for use in a login script, and cant figure out how to get it to work..I assume it uses the multiline value, but setting it to true yields no change in rendering.


Ext.MessageBox.prompt('Login',
'Please Login',
multiline:true
);

Thats the code I'm using, am i leaving something out, or am i misunderstanding the use of multiline in general?

for what its worth, Im aiming to have it with "Username, Password" and a checkbox to remember.

evant
6 Oct 2007, 4:01 PM
Multiline means make the input text multi lined. By default, prompt only supports 1 box.

Nano
6 Oct 2007, 4:33 PM
Ok, then my second question, is there a two field option?

evant
6 Oct 2007, 5:38 PM
No, the easiest way to do it is to render a form into a BasicDialog. There are examples of login forms around, search the forum.