javascript on webpage to run a jQuery ajax loop update a div on web page without event

javascript on webpage to run a jQuery ajax loop update a div on web page without event

I need a jQuery ajax loop to test a field in a file for a value = “END” if not equal wait 10 seconds and check again.  After each check  write to a div updating some variables on the browser page.  When condition value = “END” then exit loop.

 Can that be done and it there a example of how to do it.

 James R. Martin

J. Martin Associates