Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi
I have an html text and an a seperate, specific dictionary which hold definitions of some words in xml format. Is there a way to pupulate maning from this dictionary when a word is clicked, hovered or selected in the text.

Lets say this is my text
Lorem Ipsum is simply dummy text of the printing and typesetting industry.


This is my dictionary (in a seperate file)
<word>dummy</word>
<definition>a copy or imitation of an object</definition>


When I click or hover on dummy,a pop up screen should show definiton to word "dummy".

or

add pseudo link with definition as title as shown below.
<a href="#" title="a copy or imitation of an object">dummy</a>
<a href="#" title="a copy or imitation of an object">dummy</a> just like this one

I prefer second one.

Thanks in advance.
Posted
Updated 6-Jun-11 2:15am
v2

1 solution

You can read the xml (dictionary) file using JQuery. Once you have the xml data with you, you can easily show it with on the pop-up. All you need to do is to explore JQuery. Below link might help you for this particular problem: http://think2loud.com/reading-xml-with-jquery/[^]
 
Share this answer
 
Comments
sinan38tr 6-Jun-11 9:02am    
Sorry I couldn't figured out how to implement this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900