I fixed the problem, it was dumb and had everything to do with arrangement and the fact I was using name="" instead of id=""
- Seriously, use id over name. HTML id's are unique to the element, name is a deprecated feature (IIRC).
- Learn how the DOM
- Use a nice framework like jQuery, suppose you have a textbox that you need to populate:
var d = document.getElementById("myTextBox");
d.value = 'Some value';
jQuery short hands this: