Forum Moderators: open
Not sure if you can use javascript to set the focus to the page somehow and call myform.submit() when enter is hit as a workaround?
From a usability point of view, I'm not sure whether this is a good idea though?
I hit enter by mistake all the time instead of tab.
TJ
Hmm just in a site, i dont remember where is it, but the one was writing this was very confident ha ha!
I was very happy too but now am hitting my head in the wall... i dono whats wrong with this thing am doing now.
IE and Opera suddenly cant feel any sessions and suddenly it sees them and work ... and all i do is refreshing the page and all that happend suddenly without changing anything!
I cant even post here to ask whats wrong cuz its very crazyyyy!
I'd like to look further into the cause of the problem so I can post the specific cause and best solution. I do know two of the problems. One is from your form not having focus, which leaves your address bar, in which case the page would refresh only. Secondly the form might not have a "Successful control" specified by the HTML4.1 spec, but I want to know more.
[edited by: tedster at 4:35 am (utc) on Mar. 27, 2006]
<html>
<head>
<title>Diary Lock</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel='stylesheet' href='http://www.example.net/path/file.css'></head>
<body bgcolor="#ffffff">
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td align="center">
<table border="0" bordercolor="#b0424f" id="loginT" align="center" cellpadding="3" cellspacing="0">
<tr bgcolor="#b0424f">
<th style="border:0px">Sidan Skyddad</th>
</tr>
<tr>
<td align="left" valign="top" style="border:0px">
<p>Du behöver ett lösenord för att<br>kunna titta på denna sidan.</p>
<p>
</p>
<strong>Lösenord</strong>:<br>
<form method="post" action="lock.php?id=mitha&from=%2Fdiary.php%3Fid%3Dmitha">
<input type="password" name="txtPass" id="txtPass" style="width:100%">
<input name="chkRM" type="checkbox" style="border:0px; height:11px; width:11px" id="chkRM" value="1">
Kom ihåg mig<p> </p>
<input name="Unlock" id="Unlock" type="submit" style="width:100%" value="Låsa Upp">
</form>
</td>
</tr>
</table>
<p align="center">[<a href="http://www.example.se" target="_blank">Powered
by Company</a>]</p></td>
</tr>
</table>
</body>
</html> [edited by: tedster at 5:56 pm (utc) on Mar. 27, 2006]
[edit reason] use example.com in code [/edit]