return to tranceaddict tranceaddict Forums Archive > User Feedback > Site Suggestions

 
JavaScript Error
Nik Novo
When hitting the "Post Reply" Button my JavaScript Console throws the following error:

quote:
Error: document.getElementById("message") has no properties


I also was able to locate the (quite simple problem). The source code of the HTML Output for the Post Reply Button has:
quote:

quote:




thus there would be 2 possibilities fixing the problem:
You could either add the id for the textarea in the template or you could change the JS in the body onload to:
quote:
document.getElementsByName('message')[0].focus();



This error does not come up, when hitting "New Thread"
Swamper
changed it to onLoad="document.vbform.message.focus()"

Thanks... I had fixed this a while back in the new thread template but not in the new reply template. It's a firefox related thing as the other way always worked in IE (but MS writes its own rules).
CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement