rem:  $("timer").innerText = currentActivityCheckInterval / 1000 + " secs"; 
context: ChatController.checkActivity = function() {	new Ajax.Request( "/command/checkActivity", {		method: "get",		onSuccess: function( transport ) {			var updateIntervalDelta = 0;			if( transport.responseText && transport.responseXML ) {				var children = transport.responseXML.documentElement.childNodes;				for( var i = 0; i < children.length; ++i ) {					switch( children[i].tagName ) {					case "open":						updateIntervalDelta -= 200;						ChatController.createPanel( children[i] );						break;					case "close":						var panel = ChatController.panel( children[i].getAttribute( "identifier" ) );						panel.close();						break;					case "message":						updateIntervalDelta -= 500;						var message = children[i];						if( message.firstChild ) {							var panel = ChatController.panel( message.getAttribute( "panel" ) );							panel.appendMessage( message.firstChild.nodeValue );							panel.updateNewMessageCount( panel.newMessages + 1 );						}						break;					case "event":						updateIntervalDelta -= 200;						var event = children[i];						if( event.firstChild ) {							var panel = ChatController.panel( event.getAttribute( "panel" ) );							panel.appendMessage( event.firstChild.nodeValue );						}						break;					}				}			}			if( ! updateIntervalDelta ) updateIntervalDelta = 100;			var newActivityCheckInterval = Math.min( ( currentActivityCheckInterval + updateIntervalDelta ), UserDefaults.maximumActivityCheckInterval );			newActivityCheckInterval = Math.max( newActivityCheckInterval, UserDefaults.minimumActivityCheckInterval );			if( newActivityCheckInterval != currentActivityCheckInterval ) {				currentActivityCheckInterval = newActivityCheckInterval;				if( activityCheckInterval ) clearInterval( activityCheckInterval );				activityCheckInterval = setInterval( ChatController.checkActivity, currentActivityCheckInterval );				$("timer").innerText = currentActivityCheckInterval / 1000 + " secs";			}		},		onFailure: function( transport ) {			if( activityCheckInterval ) clearInterval( activityCheckInterval );			activityCheckInterval = setInterval( ChatController.checkActivity, UserDefaults.minimumActivityCheckInterval );		},		onException: function( transport, exception ) {			throw exception;		}	} );};
meta: 7556	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7556/489fdc9d41b607db9c21baabe863d8cd4128f869/common.js/clean/Plug-Ins/Web Interface/Resources/common.js