title: JQuery Div update on database update
body: <p>Right now I am using setInterval to refresh a div every few seconds.  The page it is refreshing is data being pulled from a database in asp.  I would like to have it only refresh the div when a change occurs in the database because the query is pretty large, but I've searched and could not find function or example for this.  I figure the best way is to compare a session variable against the database, but I don't know how it can check that constantly, and then update the div when it changes.</p>