View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000170 | Main CAcert Website | web of trust | public | 2006-03-09 19:01 | 2013-01-14 01:33 |
Reporter | AndreasJ | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Fixed in Version | 2006 | ||||
Summary | 0000170: Set focus to email field on load | ||||
Description | I've a little feature request for wot.php. After assuring someone you must set the focus manually to the text fiels "Assure Someone". This is annoying if you assure more than X people (in my case 20). If one change the line <form method="post" action="wot.php"> to <form method="post" action="wot.php" name="assuresomeone"> and add document.forms.assuresomeone.email.focus() to then "onload" script of the body tag "mass assurance" may be easier. | ||||
Tags | No tags attached. | ||||
Reviewed by | |||||
Test Instructions | |||||
|
I was able to set focus to a field in firefox, but not in opera, is anyone here more knowledgable in browser quirks able to comment? |
|
I managed to make this working via getElementById |
|
What about moving the setfocus() function to <head> and call it from the foot of every website? Using the 'if (document.getElementById("focusThis"))' and a generic element id "focusThis" it is possible to focus only if requested by the site. This way it will be easier to apply changes in the future and you can focus fields on other pages aswell without repeating yourself (just add id="focusThis" to the field to focus). <script language="JavaScript" type="text/javascript"> function setfocus() { if (document.getElementById("focusThis")) document.getElementById("focusThis").focus(); } </script> [...] <input type="text" name="email" id="focusThis" value=""></td> [...] <script language="JavaScript" type="text/javascript"> setfocus(); </script> </body> |
|
Possibly so, but there seems to be plenty of bigg fish to fry at this point in time :) |
Date Modified | Username | Field | Change |
---|---|---|---|
2006-03-09 19:01 | AndreasJ | New Issue | |
2006-08-16 05:11 | duane | Note Added: 0000501 | |
2006-08-16 05:11 | duane | Assigned To | => duane |
2006-08-16 05:11 | duane | Status | new => confirmed |
2006-09-06 12:09 | duane | Status | confirmed => needs work |
2006-09-06 12:09 | duane | Assigned To | duane => bluec |
2006-09-06 12:10 | duane | Status | needs work => solved? |
2006-09-06 12:10 | duane | Fixed in Version | => production |
2006-09-06 12:10 | duane | Resolution | open => fixed |
2006-09-06 12:10 | duane | Note Added: 0000662 | |
2006-09-06 21:24 |
|
Note Added: 0000664 | |
2006-09-06 21:34 | duane | Note Added: 0000665 | |
2007-10-24 06:01 | evaldo | Assigned To | bluec => |
2007-10-24 06:01 | evaldo | Status | solved? => closed |
2013-01-14 01:33 | Werner Dworak | Fixed in Version | => 2006 |