Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <!-- <script type="Text/Jacascript" src="jquery-1.7.2.min.js"></script> -->
- <script type="text/javascript" src="https://www.google.com/jsapi"></script>
- <script type="text/javascript">
- function xmlhttpGet(strURL, varElementId) {
- var xmlHttpReq = false;
- // Mozilla/Safari
- if (window.XMLHttpRequest) {
- xmlHttpReq = new XMLHttpRequest();
- if (xmlHttpReq.overrideMimeType) {
- xmlHttpReq.overrideMimeType('text/xml');
- // See note below about this line
- }
- // IE
- } else if (window.ActiveXObject) { // IE
- try {
- xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (e) {
- try {
- xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
- } catch (e) {}
- }
- }
- if (!xmlHttpReq) {
- alert('ERROR AJAX:( Cannot create an XMLHTTP instance');
- return false;
- }
- xmlHttpReq.open('GET', strURL, true);
- xmlHttpReq.setRequestHeader('Content-Type',
- 'application/x-www-form-urlencoded');
- xmlHttpReq.onreadystatechange = function() {
- callBackFunction(xmlHttpReq, varElementId);
- //alert(document.getElementById(varElementId).innerHTML);
- };
- xmlHttpReq.send("");
- }
- function callBackFunction(http_request, varElementId) {
- if (http_request.readyState == 4) {
- if (http_request.status == 200) {
- var responseString = http_request.responseText;
- //document.getElementById(varElementId).innerHTML=responseString;
- sethtml(varElementId, responseString);
- } else {
- alert('ERROR: AJAX request status = ' + http_request.status);
- }
- }
- }
- function sethtml(div,content)
- {
- var search = content;
- var script;
- while( script = search.match(/(<script[^>]+javascript[^>]+>\s*(<!--)?)/i))
- {
- search = search.substr(search.indexOf(RegExp.$1) + RegExp.$1.length);
- if (!(endscript = search.match(/((-->)?\s*<\/script>)/))) break;
- block = search.substr(0, search.indexOf(RegExp.$1));
- search = search.substring(block.length + RegExp.$1.length);
- var oScript = document.createElement('script');
- oScript.text = block;
- document.getElementsByTagName("head").item(0).appendChild(oScript);
- }
- document.getElementById(div).innerHTML=content;
- }
- </script>
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <title>Ack!</title>
- <link rel="stylesheet" type="text/css" href="style.css" />
- </style>
- </head>
- <body onload="xmlhttpGet('pub_interface/user_auth.php','auth_status')">
- <div id="background">
- <div id="header">
- <img src="img/beta_icon.png" />
- </div>
- <div id="auth_status">
- </div>
- <div id="main">
- <h1>Welcome to Ack!</h1>
- <h2>We aren't open yet.</h2>
- </div>
- <div id="footer">
- The scientific theory I like best is that the rings of Saturn are composed entirely of lost airline luggage.</div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement