Project

General

Profile

« Previous | Next » 

Revision f910c29e

Added by Vinícius Coque almost 14 years ago

Convert prototype code to jQuery

View differences:

usr/local/www/widgets/widgets/system_information.widget.php
257 257
		scroll(0,0);
258 258
		var url = "/widgets/widgets/system_information.widget.php";
259 259
		var pars = 'getupdatestatus=yes';
260
		var myAjax = new Ajax.Request(
260
		jQuery.ajax(
261 261
			url,
262 262
			{
263
				method: 'get',
264
				parameters: pars,
265
				onComplete: activitycallback
263
				type: 'get',
264
				data: pars,
265
				complete: activitycallback
266 266
			});
267 267
	}
268 268
	function activitycallback(transport) {
269
		$('updatestatus').innerHTML = transport.responseText;
269
		jQuery('#updatestatus').html(transport.responseText);
270 270
	}
271 271
	function swapuname() {
272
		$('uname').innerHTML="<?php echo php_uname("a"); ?>";
272
		jQuery('#uname').html("<?php echo php_uname("a"); ?>");
273 273
	}
274 274
	setTimeout('getstatus()', 4000);
275 275
</script>

Also available in: Unified diff