javascript - GetelementbyId from selected Value -
I have a script that obtains a parameter and updates the table in a MySQL database. I want to execute that script with javscript and a button. But that button does not work.
$ abfrage = "pending selection"; $ Erbbinis = iscl_query ($ abbenz); Echo & lt; Script & gt; Function showid (str) {if (str == "") {document.getElementById ("txtHint") InnerHTML = ""; Return; } If (window.XMLHttpRequest) {// code for IE7 +, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest (); } Else {// code for IE6, IE5 xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP"); } Xmlhttp.onreadystatechange = function () {if (xmlhttp.readyState == 4 & xmlhttp.status == 200} {document.getElementById ("txtHint"). InnerHTML = xmlhttp.responseText;}} Xmlhttp.open (" GET "," getusr.php? Q = "+ str, true); xmlhttp.send ();} function status (str) {xmlhttp.open (" get "," getusr.php? Status = "+ str, true ); Xmlhttp.send ();} & lt; / script & gt; 'echo'
Comments
Post a Comment