javascript - getElementById breaks script -


I am working on a small project, but I am stuck and do not know what I'm doing wrong.
I use AAGX to call a php-script which updates an MYSQL-line.

JavaScript:

  function Shejedna () {if (window.XMLHttpRequest) {Xmlhttp = new XMLHttpRequest (); } And {xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP"); } Kmlhttpkonreadysttechange = function () {if (Kmlhttpkreadystte == 4 & amp; Kmlhttpkstets == 200} {Dokyumentkgetelementbyid ( "Kstdetails"). Inrःtml = Kmlhttpkresponsetest;}} Kmlhttpkopan ( " gET ",". / Ajax / savecust.php? Id = "+ document.getElementById ( 'id'). value, true); // logic must still pass. xmlhttp.send ();}   

If i document.getElementById ( 'id') to remove me, so is the script works and what he does. (I get feedback from PHP, Obviously

I load the script with some other scripts in the head of the page:

  

  

Comments