Subversion Repositories ALCASAR

Rev

Rev 2883 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2883 Rev 3307
Line 75... Line 75...
75
	chilliController.location = null;
75
	chilliController.location = null;
76
    }
76
    }
77
 
77
 
78
    if ( chilliController.clientState == 0 ) {
78
    if ( chilliController.clientState == 0 ) {
79
        showLoggedOutPage();
79
        showLoggedOutPage();
80
		setTimeout('chilliController.refresh()', 1000*chilliController.interval);//WBR for status page only
80
		setTimeout('chilliController.refresh()', 1000*chilliController.interval);// refresh status page every 20"
81
    }
81
    }
82
 
82
 
83
    if ( chilliController.clientState == 1 ) {
83
    if ( chilliController.clientState == 1 ) {
84
        if ( chilliController.statusURL ) {
84
        if ( chilliController.statusURL ) {
85
			chilliController.statusWindow = window.open(chilliController.statusURL, "");
85
			chilliController.statusWindow = window.open(chilliController.statusURL, "");
Line 117... Line 117...
117
    hidePage("loggedOutPage");
117
    hidePage("loggedOutPage");
118
    showPage("statusPage");
118
    showPage("statusPage");
119
    hidePage("waitPage");
119
    hidePage("waitPage");
120
    hidePage("errorPage");
120
    hidePage("errorPage");
121
    
121
    
122
    //We check if user is still connected while he gets 'still_connected.php'
122
    // call 'still_connected.php' in order to inform ALCASAR that the user is...  ...still ceonnected ;-)
123
    var xhttp = new XMLHttpRequest();
123
    var xhttp = new XMLHttpRequest();
124
    xhttp.open('GET','still_connected.php',true);
124
    xhttp.open('GET','still_connected.php',true);
125
    xhttp.send();
125
    xhttp.send();
126
 
126
 
127
    // Update message
127
    // Update message