Help with Javascript - alogin.html
Posted: Fri Sep 17, 2010 4:55 pm
Hello,
I am trying to place javascript code in the alogin.html page to check to see if session-time-left is less than 24 hours. If the session-time-left is less than 24 hours I would like to change the location.href = '$(link-redirect)' variable to a staic webpage address such as location.href ='http://www.mypage.net' .
Here is the code I have so far:
<script language="JavaScript">
<!--
function startClock() {
$(if popup == 'true')
open('$(link-status)', 'hotspot_status', 'toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=1,width=270,height=400');
$(endif)
$(if login-by != 'trial' && session-time-left < '24:00:00' )
link-redirect = 'http://account.mypage.html' ;
$(endif)
location.href = '$(link-redirect)';
}
//-->
</script>
I appreciate anyone's help with this. It's been over 5yrs since I had to do C# programming and have no experience with java.
I am trying to place javascript code in the alogin.html page to check to see if session-time-left is less than 24 hours. If the session-time-left is less than 24 hours I would like to change the location.href = '$(link-redirect)' variable to a staic webpage address such as location.href ='http://www.mypage.net' .
Here is the code I have so far:
<script language="JavaScript">
<!--
function startClock() {
$(if popup == 'true')
open('$(link-status)', 'hotspot_status', 'toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=1,width=270,height=400');
$(endif)
$(if login-by != 'trial' && session-time-left < '24:00:00' )
link-redirect = 'http://account.mypage.html' ;
$(endif)
location.href = '$(link-redirect)';
}
//-->
</script>
I appreciate anyone's help with this. It's been over 5yrs since I had to do C# programming and have no experience with java.