From: Ondrej J. <ne...@po...> - 2003-01-15 13:34:18
|
> Suggestion, if possible, for next versions: > Situation: adding a record with required = yes... > Some customers may type spaces in the form field and then click ADD. > How about applicate, in next versions, a TRIM operation inside the > javascript function? > There are a lot of similar routines (TRIM simulation to javascript) in > www.google.com that runs well. Yes, I like the idea. Please post me a JavaScript "trim()" function implementation, I can add it in phpMyEdit. I suppose we can simple remove the current implementation by adding this feature, since probably nobody willl need ['required'] for spaces and/or other white characters. Concerning to my last CVS update, the possibility of ['required'] for selects and multiple selects were implemented. However the detection is not provided different way as in text input boxes case. Another problem was, that multiple selects havetheir names like this[], thus cannot be simply used in JavaScript code (theForm.multiple_select[].something causes syntax error). I was able to deal with all of these problems, so enjoy null entries preventing in mutiple selects. But anyway, coding in JavaScript is not the think I anyhow like. :-) -- _/| Ondrej Jombik - ne...@ph... - http://www.nepto.sk - OJ812-RIPE <_ \ Platon SDG - open source software development - http://platon.sk `\| Nech operacia X na mnozine G tvori grupu, potom plati... rundu! '` |