PDA

View Full Version : read and find textbox contents


scroots
05-02-2003, 09:16 PM
if i have a textbox how can i read the contents of it and the search for stuff in it. So i could define my search terms inside my script and when it finds one of the thnigs its looking for it sets a varaible to one.

for example they enter <boo>, i would like my script to run through and if it finds <boo> it will set a value to one.
I will be searching for more than one set of words. Also the search needs to continue to check rhe rest of it.

any code/tutorials/advice?

scroots

beetle
05-02-2003, 10:29 PM
I don't have time to give a full response, but you'll need to use TextRange objects. Google-search for a tutorial and you'll probably find something to help.

Also
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_textrange.asp

scroots
05-03-2003, 09:11 AM
thanks beetle, i'll look later when i am more awake.

scroots