What you are describing is colloquially called Comet programming. Comet describes a group of techniques for pushing content to a web page with a persistent HTTP connection.
The push would be initiated using a trigger/stored procedure combination in the database server. That way, it occurs no matter where the data update comes from.