I've created an online text RPG in this same fashion, which is a very extreme case of the project you require. All it would require is a server application in PHP to gather the data from the database, and a very small bit of AJAX to perform the refresh.
I even have a library! Yay!
If you'd like, I can work up an example if you want to send me a sample of what your current situation is.