[TYPO3-dev] enforcement of uniqueness of fields

Franz Holzinger franz at fholzinger.com
Mon Apr 24 11:05:53 CEST 2006


Hello

> 2006/4/24, Martin Kutschker <Martin.Kutschker at n0spam-blackbox.net>:
> 
> 
>>Why not onchange? With onkeyup the check will be done for each letter you type.
> 
> 
> onchange is triggered when the focus leaves the input field. When the
> user clicks save while the cursor is in the input field, he will not
> see the warning.
> 

I would prefer another solution to give a warning when a input field is
left. It should be possible to have more than one field to create the
key of a table. This is needed already now for mm table where you have
uid_local and uid_foreign.

When the user clicks on a SAVE button or leaves the current TAB then
this check against the database shall be done.

Or another solution would be to let the database generate the error
message. Only in this case the check function from AJAX shall be called.
This would save some waiting time for the user because no db query has
to be done for the most cases where everything has been entered correctly.

Greets,

Franz






More information about the TYPO3-dev mailing list