I have a simple HTML page that rotates through several status pages that I display on several tv's around campus. I regularly update the page and the links. Many times the pages require authentication. It is a pain to remote to ever terminal to supply credentials. Some are HTTP authentication and some are some <form>
based authentication baked into the site. Many times I can get around the <form>
based authentication with HTML and JavaScript that post the right credentials.
Is there a better way to get around
the<form>
based authentication
from the host page? (below)Is there any way to get around the
Server/HTTP based authentication
from the host page without having to
manually authenticate on ever
display?
By <form>
authentication I mean that a <form>
action generates a session cookie?
( mikerobi, thanks for the comment)
Here is the code for the host page
<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
<html xmlns=http://www.w3.org/1999/xhtml >
<head>
<title>
Important Stuff
</title>
<script src=/scripts/jquery.js type=text/javascript></script>
<style type=text/css>
html, body, iframe { margin:0; height:100%; }
iframe { display:block; width:100%; border:none; }
</style>
<script type=text/javascript>
var link = new Array();
link[0] = http://mycompany.intranet/;
link[1] = http://mycompany.intranet/weather.htm;
link[2] = http://mycompany.intranet/systemstatus/;
var linkIndex = 0;
setInterval(doSomething(), 10000);
function doSomething() {
if (linkIndex >= link.length)
{
// reload in case the page has been updated
window.location.reload();
}
$(#frame).attr(src, link[linkIndex]);
linkIndex++;
}
</script>
</head>
<body>
<iframe id=frame src=http://mycompany.intranet/></iframe>
</body>
</html>