164
rated 0 times
[
167]
[
3]
/ answers: 1 / hits: 25963
/ 13 Years ago, mon, june 27, 2011, 12:00:00
<script>
$.ajax
({
url: ../getStatus/,
dataType: 'json',
success: function(json)
{
$('#ajaxLog').html(json.status+<br/>);
}
});
</script>
//Need this section to make a new line when refreshed
<div id = ajaxLog style=width:50%></div>
This needs to be an accumulative, returned message to the webpage. Each time the process starts/stop/suspends it will be displayed. The displayed message will not keep saying stopped/started/ etc. when remaining in a state - rather displayed each time these states change then it wont be redisplayed constantly -- NOT like jquery.append() does.
Desired
started 10:48
stoped 10:50
Started 12:53
suspended 3:34
Started 3:40
NOT DESIRED
started 10:48
started 10:48
started 10:48
started 10:48
started 10:48
started 10:48
started 10:48
stoped 10:50
.
.
and so on
(like append() would do)
More From » jquery