"most if not all browsers these days allows the user to search within the page for words - why are you trying to reinvent the wheel?"
That wheel is one I am not trying to reinvent. Everyone knows you can just hit ctrl-F to search within a page.
I've already figured out how to do the second choice with javascript. So the first choice would be really nice. I will be surprised if it cannot be done on the client side with CSS.
What I envision is every word on the page being hyperlinked and, when clicked, it brings one to some already existing online dictionary with that word as input,
say http:\\MasterEllandrdsHelp
Main Topics
Browse All Topics





by: ellandrdPosted on 2007-08-30 at 09:27:12ID: 19801652
>>Any suggestions?
it will not be done using client-side scripting. If you are using server-side scripting such as PHP, read the contents of the page into an array, stripping out all non-alpha/numeric data. I would then remove duplicates from this array so im left with a list of unique words that exist on your webpage. once you have got this far, then allow your dictionary to search this array.
what kind of online directory have you got - have you programmed your own??
>>I would prefer that each word have a built in link (maybe this can be done with CSS).
OK your not going to get a complete solution coded for you - you are aware of this right?
>>2nd Choice would be to have a button on the page that would allow them to select text and then click the button.
most if not all browsers these days allows the user to search within the page for words - why are you trying to reinvent the wheel?
ellandrd