Quote:
Originally Posted by hdewantara
Is it possible the span just doesn't contain the exact 'evt' term? Maybe some letters are in uppercase. Could you paste a bit of the HTML structure here?
|
The user clicks on the link below and, in this case, 'GSU' is passed to the javascript. So I believe all is well with that part but here is the html:
Code:
<a class="glossaryLink" href="#" onmouseover="onRollOverPULink(event, 'GSU');"onmouseout="onRollOutPULink(event);" onclick="showHideGlossary('GSU')">GSU</a>
And here is the JS that populates the glossary div:
Code:
$("#glossaryContent").append("<span class='glossAcro'>" + $(this).attr('term') + "</span>" + "<span class='glossDef'>" + $(this).attr('def') + "</span>"); // output from XML
And here is part of the XML file which is the source for the glossary:
Code:
<item term="GIG" def="Global Information Grid" />
<item term="GSU" def="Geographically Seperated Unit" />
By the way, thanks for the help.