Advertisement
Advertisement
| 05.16.2008 at 05:23AM PDT, ID: 23408011 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: |
//loop through them to find one with a name that matches the nameOfTerm
for (var i=0; i<noOfTerms; i++) { //for all the terms in the glossary
name = xmlhttp.getElementsByTagName("glossary")[0].getElementsByTagName("term")[i].getElementsByTagName("name")[0].firstChild.nodeValue;
definition = xmlhttp.getElementsByTagName("glossary")[0].getElementsByTagName("term")[i].getElementsByTagName("definition")[0].firstChild.nodeValue;
if (name == '<%=nameOfTerm%>') { //if the name of the term passed into the glossary function matches a name in the glossary xml file
document.write ("<a href='#' class='tooltip'><%=nameOfTerm%><span>" + definition.replace(/<(.|\n)+?>/gi, "") + "</span></a>");
}//the above line uses a regex to remove all the html tags from the definition. gi means it does this globally and without case sensitivity
}
|