codice:
	var ajax = new Ajax('mypage_2.htm', {
		update: $('update'),
		onRequest: function() {
			this.options.update.setHTML("Loading...");
		},
		onComplete: function(text) {
			alert("Complete! " + text);
		},
		onFailure: function() {
			alert("Non è stato possibile eseguire la richiesta correttamente");
		}
	});


		ajax.request();

ho trovato questo esempio...
iol mio dubbio è:

se volessi passare l'url coem parametro volta per volta...

dovrei fare così ?

codice:
<script>
	var ajax = new Ajax(url, {
		update: $('update'),
		onRequest: function() {
			this.options.update.setHTML("Loading...");
		},
		onComplete: function(text) {
			alert("Complete! " + text);
		},
		onFailure: function() {
			alert("Non è stato possibile eseguire la richiesta correttamente");
		}
	});


		ajax.request('mypage_2.htm');

</script>
<div id="update"></div>



:master: