Question
detecting text in text entry
What would be a good method of detecting the presence of text
in a text
entry field?
And if there were only spaces pressed then that would be regarded as an
empty text extry field.
I thought about a textfield listener triggered with onchage which does a
split and join on the space character and then check if the resulting string
length is greater than zero. I think this would work but seems very
inefficient when there are long passages of text.
Any ideas on a better method?
Many thanks
Dave
entry field?
And if there were only spaces pressed then that would be regarded as an
empty text extry field.
I thought about a textfield listener triggered with onchage which does a
split and join on the space character and then check if the resulting string
length is greater than zero. I think this would work but seems very
inefficient when there are long passages of text.
Any ideas on a better method?
Many thanks
Dave