This is the code, maybe somebody can tell me what to do? } else setTimeout('goHttp(' + step + ')', 1000); } else { if(response.substr(0,16).indexOf(':') > -1) { var func = response.substr(0,response.indexOf(':')); if(func == 'whois') { if(response == 'whoisNE') document.getElementById('TSRwtoggle').innerHTML = 'The domain does not exist in whois records.'; else { document.getElementById('TSRwtoggle').innerHTML = ''; document.getElementById('TSRwtogglelink').style.display = 'inline'; } } document.getElementById('TSR' + func).innerHTML = response.substring(response.indexOf(':') + 1); } comp[step] = 1; comps++; } if(comps == Steps) { active = false; url = ''; abort = false; document.forms['TSRform'].elements['submit'].value = 'Lookup'; } slideMeDown();
Make sure that func is what you think it is. I'm assuming the line that is failing is: document.getElementById('TSR' + func).innerHTML = response.substring(response.indexOf(':') + 1); Otherwise make sure the other id's exist. You may want to create a js function called $id or something that first ensures that the id exists and alerts if it doesn't, this will help weed out typos in your html.