3 Replies Latest reply on Jan 30, 2009 6:27 AM by kglad

    detecting text in text entry

    Level 7
      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