This function works nicely except it's based on an interval, how can I adapt it so it only fires once.

$(document).ready(function() {
$.ajaxSetup({ cache: false }); // This part addresses an IE bug. without it, IE will only load the first number and will never refresh
setInterval(function() {
$('#txtSummary').load('http://localhost/example/comp333assn1/php/group_list.php?q=all_contacts')
}, 3000); // the "3000" here refers to the time to refresh the div. it is in milliseconds.
});

Pullo
—
2013-03-25T20:18:00Z —
#3

everclear said:

This function works nicely except it's based on an interval, how can I adapt it so it only fires once.