Ah.. I never even thought of that. Adding onfocus='go()' and onblur='go()' fixes that though . Maybe a revision that add's event handlers to the fields unobtrusively is needed
In the BMC-newsletter, the following comment was made:
"Since data fields usually have a maximum size when they are input into a SQL database, this code is useful to ensure that users' input conforms to the limitations of the data storage engine."
I want to warn everybody that this is utter bullshit. If I just would disable javascript, your database will vomit over my input. Always, repeat after me, ALWAYS check user input SERVER SIDE before doing anything furter with it. NEVER trust the user his input. Paranoia keeps your webapp alive.
1. Select really large block of text
2. Click into your field
3. Press right menu button to activate context menu and select "Paste" command.
The whole text block will be placed into the field.
"Since data fields usually have a maximum size when they are input into a SQL database, this code is useful to ensure that users' input conforms to the limitations of the data storage engine."
I want to warn everybody that this is utter bullshit. If I just would disable javascript, your database will vomit over my input. Always, repeat after me, ALWAYS check user input SERVER SIDE before doing anything furter with it. NEVER trust the user his input. Paranoia keeps your webapp alive.