Hi, Please consider the code below:
$(document).ready(function(){ $("div#display").load("display.php"); }); $(document).ready(function(){ $("a.test").livequery("click",function(event){ var id = $(this).attr('id').substr(1); $("div#status").html('<img name="wait" src="wait.jpg" />'); $("div#status").load("delete.php?id=" + id); $("div#display").load("display.php"); return false; }); }); display.php is loaded with the document and injected into the dom (the first time the page is loaded, that is). Then when a link with class .test is clicked, a deletion process is triggered (delete.php, which outputs a process status), and the display.php page should be reloaded and re-injected into the dom, with updated results. The reload of display.php after a .test click is quirky. Sometimes it works, sometimes it doesn't. Any idea why? Regards, -jj. :)