I have the following code.
everytime i run it, the same error pops up for this function refreshDefiniti onArea(): missing ) after argument list
here is the error on firebug:
missing ) after argument list
refreshDefiniti onArea(BSGO:000 5363);
any ideas??
Code:
function updateTermsList() {
var termDivBox = document.getElementById("termarea");
var terms = searchXMLHttp.responseXML.getElementsByTagName("term");
for(var i=0;i<terms.length;i++){
var name = terms[i].childNodes[1].firstChild.nodeValue;
var value = new String(terms[i].childNodes[0].firstChild.nodeValue);
var a = document.createElement('div');
termDivBox.appendChild(a);
a.innerHTML = '<a href="#" onclick="refreshDefinitionArea('+value+');">'+name+'</a>';
}
}
here is the error on firebug:
missing ) after argument list
refreshDefiniti onArea(BSGO:000 5363);
any ideas??
Comment