I have a php page and I want to use ajax or jquery to load a php page which is within the same file directory ever x minutes. the external php page I want to load every x minutes contains php code that queries a mysql database looking for new rows of data and if it finds one pops up a jquery module window with a form in it. My issue is all the same code I seem to find requires me to setup a div in the parent page and wants to load that content into just that div. However I want to display the external php page over the top of the entire page if that makes sense how I am explaining it.
My code I am trying to use but does not work is
setInterval(
$.get( "checkapiinsert.php", function( data ) {
$( "body" )
},10000);