Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Checking Editor text  (Read 2801 times)

0 Members and 1 Guest are viewing this topic.

TheDerman

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 225
    • View Profile
Checking Editor text
« on: September 24, 2010, 01:53:26 AM »

Hello everyone,

Is there a way to check to see if the text of an editor contains certain words?

I have a little search engine type input editor, and I can't be sure exactly what people will put in there, but I want to check to see if they have entered two specific words - regardless of whatever else they enter, I just want to check that they've entered these two words, and if they have, bring up a new window which shows the "search results".

Can I do that? I can't find anything.

Thank you.   :)
Logged

TheDerman

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 225
    • View Profile
Re: Checking Editor text
« Reply #1 on: September 24, 2010, 02:20:52 AM »

It's ok - I figured it out - I set the editor text to a new string and used IndexOf - seems to work fine.

Thanks.  :)
Logged
 

Page created in 0.022 seconds with 24 queries.