Forum Moderators: open
function addServiceSubmit()
{
var postStr = 'quoteID=' + document.getElementById('quote_id').value;
postStr += '&description=' + document.getElementById('description').value.htmlEntities();
postStr += '&service=' + document.getElementById('service').value;
postStr += '&amount=' + document.getElementById('amount').value;
http.open('POST', '/add-service.php', true);
http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
http.onreadystatechange = requestAddserviceHandler;
http.send(postStr);
}
but in IE it tells me there is an error on line 6 character 2 which is postStr += '&description=' + document.getElementById('description').value.htmlEntities();
I also tried this without any success:
var desc = document.getElementById('description').value;
postStr += desc.htmlEntities();
ANy help would be greatly appreciated.
PS It works fine on my wamp setup but not live.
var desc = document.getElementById('description').value;
postStr += '&description=' +htmlEntities(desc);
for some reason. Not sure why and I cant seem to install ie 6 to test so back to window.open...