Page 1 of 1

Status/usage popup window...HoW please? Mine's broken...

Posted: Mon Jul 10, 2006 5:17 am
by caribou
I had to customize my login page and the status popup window that lets the user see how much time has been used no longer pops up when people login....I'd like to remove any html scraps of what I damaged and paste in working code so that status window pops up when surfing......Any help out there for me?

Here's the code of my current page...

**********************************************
<html>
<head>
<title>CaribouNet Welcome page > login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<style type="text/css">
<!--
textarea,input,select {
background-color: #FDFBFB;
border: 0px #BBBBBB solid;
padding: 2px;
margin: 1px;
font-size: 14px;
color: #808080;
}

body{ color: #737373; font-size: 10px; font-family: verdana; }

a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 10px; }
a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; }
img {border: none;}
td { font-size: 14px; color: #7A7A7A; }

-->
</style>
</head>

<body bgcolor="#f2cb9f">
$(if chap-id)
<form name="sendin" action="$(link-login-only)" method="post">
<input type="hidden" name="username">
<input type="hidden" name="password">
<input type="hidden" name="dst" value="$(link-orig)">
<input type="hidden" name="popup" value="true">
</form>
<script language="JavaScript" src="/md5.js">
</script>
<script language="JavaScript">
<!--
function doLogin() {
document.sendin.username.value = document.login.username.value;
document.sendin.password.value = hexMD5('$(chap-id)' + document.login.password.value + '$(chap-challenge)');
document.sendin.submit();
return false;
}
//-->
</script>
$(endif)

<table width="100%" height="100%">

<tr>
<td align="center" valign="middle">

<br>

<table width="240" height="240" style="border: 0px solid #cccccc; padding: 0px;" cellpadding="0" cellspacing="0">
<TR>
<TD align="middle">
<IMG src="img/top.gif"></TD></TR>


<tr>
<td align="center" valign="top" height="175" colspan="2">

<form name="login" action="$(link-login-only)" method="post"
$(if chap-id) onSubmit="return doLogin()" $(endif)>
<input type="hidden" name="dst" value="$(link-orig)">
<input type="hidden" name="popup" value="true">

<table width="100" style="background-color: #f2cb9f">
<tr><td align="right">login</td>
<td><input style="width: 80px" name="username" type="text" value="$(username)"/></td>
</tr>
<tr><td align="right">password</td>
<td><input style="width: 80px" name="password" type="password"/></td>
</tr>
<tr><td>&nbsp;</td>
<td><input type="submit" value="OK">
</td>
</tr>
</table>

<input type="hidden" name="domain" >
<input type="hidden" name="dst" value=%"link-orig%">
<input type="hidden" name="js-disabled" value="true">
<input type="hidden" name="popup" value="true">
<span class=tbl><input type="checkbox" %input-popup%>Open pop-up status window on logon</span>
</form>

</table>
<tr><td><A href="trouble.html">I need some help... J'ai besoin d'aide...</a></td></tr>
</td>
</tr>



<br>
<div style="color: #333388; font-size: 20px"> Check your usage-- CaribouNet.com/status.html -- Verifier votre usage</div>
$(if error)
<br><div style="color: #FF8080; font-size: 9px">$(error)</div>
$(endif)

</td>
</tr>
</table>

<script language="JavaScript">
<!--
document.login.username.focus();
//-->
</script>

</body>
</html>

Posted: Mon Jul 31, 2006 1:01 pm
by caribou
ok, some people get the pop-up window and some don't ...it's a browser setting issue depending on the settings of the customer...not mikrotik...thanks.

Posted: Tue Aug 01, 2006 6:50 am
by bjohns
Yeah, I had to sneek it under a button via a 'onclick' function - so it appears to the browser as a user initiated thing, although this can still be blocked by particularly zealous popup blockers.