From ad398971445a3aad5490ad4c3e6b7319f201bb8f Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Tue, 3 Apr 2007 16:50:17 +0000 Subject: * Script prototype --- bin/testadmin.htm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bin/testadmin.htm') diff --git a/bin/testadmin.htm b/bin/testadmin.htm index 1e34cf7..62a860d 100644 --- a/bin/testadmin.htm +++ b/bin/testadmin.htm @@ -69,7 +69,7 @@ if (http_request.readyState==4) alert('Cannot create XMLHTTP instance'); return false; } - + http_request.onreadystatechange =state_Change http_request.open('POST', url, true); http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); @@ -83,14 +83,14 @@ if (http_request.readyState==4) if (http_request.status == 200) { //alert(http_request.responseText); result = http_request.responseText; - document.getElementById('T1').innerHTML = result; + document.getElementById('T1').innerHTML = result; } else { alert('There was a problem with the request.'); } } } - + function get(obj) { var poststr = "FirstName=" + encodeURI( document.getElementById("FirstName").value ) + "&LastName=" + encodeURI( document.getElementById("LastName").value ) @@ -98,7 +98,7 @@ if (http_request.readyState==4) + "&AdminPass=" + adminpass; makePOSTRequest('Admin/NewAccount', poststr); } - + function setpass(obj) { adminpass = encodeURI( document.getElementById("Adminpss").value ); @@ -115,6 +115,7 @@ if (http_request.readyState==4)
+ -- cgit v1.1