Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Checking Editor text  (Read 1283 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.125 seconds with 24 queries.