<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Javascript-Ajax   problema timer]]></title><description><![CDATA[<p dir="auto">Salve a tutti ho un problema con il seguente script:</p>
<pre><code>function up(){
	var ajaxRequest;  // The variable that makes Ajax possible!	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Questo browser non permette al servizio di funzionare. Aggiornatelo...");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			document.myForm.time.value = ajaxRequest.responseText;
		}
	}
	ajaxRequest.open("GET", "login/refresh.php", true);
	ajaxRequest.send(null); 
	setTimeout("up()",5000);
}
up()
</code></pre>
<p dir="auto">mi viene segnalato:<br />
Uncaught type error: cannot read property 'time' of undefined</p>
<p dir="auto">Come posso risolvere?</p>
<p dir="auto">grazie a tutti</p>
]]></description><link>https://dev.connect.gt/topic/132248/javascript-ajax-problema-timer</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 21:04:01 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/132248.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Jul 2010 12:38:54 GMT</pubDate><ttl>60</ttl></channel></rss>