Hello.
I'm trying to fix this bug at my work's website. There is an input text box where a user can type the name of something, then once input, it will return the corresponding passwords. that all works fine and dandy, however in order to submit the requested input, the user MUST click the 'get' button, the user can not hit enter. If they do hit enter, it brings them to an unwanted page, with the input box and 'get' still there, but now there are no script menu bars at the top. Here is a sample of where the button is dealt with in the source code:
<tr style = "background-color: #F3F3F3">
<td align = left width = 7% class = "bold">
Name:
</td>
<td align = left width = 20%>
<input type = text name = PASSWORD_NAME size = 40 maxlength = 256 id = "passwordName" >
</td>
<td align=left>
<input type = button onClick = "getPassword()" value = "Get">
<span style="color: red">
Please use the buttons. The enter key cannot be used.
</span>
</td>
</tr>
Does anybody have ideas or comments as to why the 'enter' doesnt work? or is there a way to 'trick' it?
Thank you so much,
Sean.
I'm trying to fix this bug at my work's website. There is an input text box where a user can type the name of something, then once input, it will return the corresponding passwords. that all works fine and dandy, however in order to submit the requested input, the user MUST click the 'get' button, the user can not hit enter. If they do hit enter, it brings them to an unwanted page, with the input box and 'get' still there, but now there are no script menu bars at the top. Here is a sample of where the button is dealt with in the source code:
<tr style = "background-color: #F3F3F3">
<td align = left width = 7% class = "bold">
Name:
</td>
<td align = left width = 20%>
<input type = text name = PASSWORD_NAME size = 40 maxlength = 256 id = "passwordName" >
</td>
<td align=left>
<input type = button onClick = "getPassword()" value = "Get">
<span style="color: red">
Please use the buttons. The enter key cannot be used.
</span>
</td>
</tr>
Does anybody have ideas or comments as to why the 'enter' doesnt work? or is there a way to 'trick' it?
Thank you so much,
Sean.