CINXE.COM
Inside John Jay
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <meta name="robots" content="noindex"> <head runat="server"> <title>Inside John Jay</title> <script type="text/javascript"> // Enforce HTTPS if (location.protocol !== 'https:') { location.replace(`https:${location.href.substring(location.protocol.length)}`); } function ajaxFunction() { var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { //document.myForm.time.value=xmlHttp.responseText; //alert(xmlHttp.responseText); //xmlHttp.responseText } } xmlHttp.open("GET","authResponse/returncredentials.asp",true); xmlHttp.send(null); //var url = "winlogin.asp"; //var params = "auth=true"; //xmlHttp.open("GET", url+"?"+params, true); //xmlHttp.send(null); //var url = "winlogin.asp"; //var params = "auth=true"; //xmlHttp.open("POST", url, true); //xmlHttp.send(params); //Send the proper header information along with the request //xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); //xmlHttp.setRequestHeader("Content-length", params.length); //xmlHttp.setRequestHeader("Connection", "close"); window.location = "winlogin.asp?auth=check"; } </script> </head> <body onload="ajaxFunction();"> <form id="form1"> <div> </div> </form> </body> </html>