ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

4
Date Submitted Tue. Sep. 25th, 2007 10:50 AM
Revision 1
Helper chaos
Tags "form input" | "input focus" | autofocus | JavaScript
Comments 0 comments
This script performs reliable, cross-browser input autofocus that often can be used simply by dropping it in, with no modifications to the form or HTML body. It refuses to switch focus if it detects that the user has interacted with the form (avoiding a major source of annoyance with autofocus scripts) and correctly handles Firefox tabs opened "in the background", which most autofocus scripts fail on. Official home is on the Lost Souls MUD Grimoire.
4
Date Submitted Mon. Oct. 23rd, 2006 5:35 PM
Revision 1
Beginner jonathanstarrett
Tags "form input" | Java | JComboBox
Comments 0 comments
I was looking for an easy way to populate a combo box with strings taken from an enumeration, and also to be able to pull out Enum objects from the combo box. After some searching, I found EnumComboBoxModel on the JDesktop website, but was not able to find any code.

Instead I came up with an easier solution that did not require me to define a new Model class, but instead uses javax.swing.DefaultComboBoxModel.

Sorry for the disorganization of the code, but hopefully you get the idea.
5
Date Submitted Mon. Oct. 9th, 2006 8:44 AM
Revision 1
Helper RobHarrigan
Tags "form input" | "SQL Injection" | Clean | Prevent | XSS
Comments 1 comments
Sanitize form input using CGI.pm to prevent XXS & SQL injections: