View Full Version : displaying result

05-13-2009, 07:17 AM

I have a form, 3 text boxes and a button.

User is required to enter the data in two text box and hit the generate button. Program generates the key using the input data in both the fields.

Now Instead of using a text box for generated key, all I want display the result so that end-user can copy the data.

I can disable the textbox from any inputs but generated key cannot be copied by using this.

Is there any other alternate way to do this?
Please help!

<FORM name=f action="javascript:update()">
<TD><INPUT name=parameter style="font-family: monospace"></TD>

<TD>Master Password:</TD>
<TD><INPUT type=password name=seed style="font-family: monospace"></TD>

<TD colSpan=2>

<TD>Generated Password:</TD>
<TD><INPUT name=result size="30" style="font-family: monospace"> <INPUT onclick=update() type=submit value=Generate></TD>


05-13-2009, 09:55 AM
Just drop those input elements and then show the data directly inside the table cells or use some elements like <span>

05-13-2009, 12:02 PM