LyndonOHRC
Programmer
I'm perplexed again...
I'm passing a var through a constructed event and at some point JS is converting the string to a result. How do I stop this behavior? Example Social Security Number 111-11-1111 is turning into the value -1011.
Code that constructs the event handler:
Code that populates an input element; at this point the math operation seems to have taken place:
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
I'm passing a var through a constructed event and at some point JS is converting the string to a result. How do I stop this behavior? Example Social Security Number 111-11-1111 is turning into the value -1011.
Code that constructs the event handler:
Code:
var users = eval(trim(xmlhttp.responseText));
var str = "";
for ( var recno in users ) {
var selectedSSN=users[recno].LicenseeSSN;
str += '<span onclick="putIn('+selectedSSN+')">'+selectedSSN + " is ";
str += users[recno].LicenseeName + " ";
str += users[recno].LicenseYear + "</span><br/>";
}
document.getElementById('pickList').innerHTML = str;
}
Code that populates an input element; at this point the math operation seems to have taken place:
Code:
function putIn(selectedSSN){
document.getElementById('lname').value='';
document.getElementById('ssn').value=''+selectedSSN;
document.getElementById('pickList').innerHTML='';
}
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey