Implements relationship two file

Hi everyone

I have two files (pdf), first a translate conversation and second the glossary of

word into conversation. My problem is how relationship these words in real time whe User had a mouse over on word this show signify from glosary.

Any suggestion for resolve problem.

Basically, when user is over a word you can do an ajax call to a controller action passing word where he is on.

This approach could be slow, so you could parse every words in the text to prepare before glossary of each words; but this evaluation can be done only if you know number of words that a text could contain.