Click to See Complete Forum and Search --> : capturing text


sgebbie2
03-05-2003, 03:39 PM
Can anyone tell me how to do this
I have a massive text file (the result of an export), basically a list of words.
the easiest way of modifing this text file to work the way i want it to is to paste a script at the top.

what i need is if i click on a word (lets imagine 'example') , i need to find out what that word is, eg, event.srcElement....text = "example"

if that makes any sense.. or even if the word is doubleclicked, how can I reference it??? cant find body.document.selection or anything similar


any helpp would be appreciated

thanks

khalidali63
03-05-2003, 04:07 PM
I guess if I understood you correctly,take a look at this script.

http://68.145.35.86/skills/javascripts/SelectANyWordFromPage.html

Cheers

Khalid

sgebbie2
03-05-2003, 04:14 PM
yup

thanks Khalid thats excellent i can just modify it a little to my exact needs

thanks:D

sgebbie2
03-05-2003, 04:22 PM
ok im too stupid for my own good

if i click once, can i trugger ie to doubleclick ?
ie instead if double clicking i want 1 click to select text

I can change it in control panel, but that makes everything else very complicated

khalidali63
03-05-2003, 05:14 PM
Not sure, try it and see what kind of results you get,and once you screwed it up really good,then let me know

:D

Cheers

Khalid