Forum Moderators: open
(FrmSmokin is the ID of a Text area in the page)
try {
if (xmlReq.readyState == 4) {
if (xmlReq.status == 200) {
resultText = xmlReq.responseText;
document.getElementById('FrmSmokin').value = resultText;
However, if you add dummy text like this "Void," to the front of your echo response, you can do this, and you won't get a blank line at the top:
try {
if (xmlReq.readyState == 4) {
if (xmlReq.status == 200) {
resultText = xmlReq.responseText.split(",");
//Have to split it cause otherwise it adds a blank line to the top
document.getElementById('FrmSmokin').value = resultText[1];
Took me a while to solve this one..........z