How to have a page CONTINUE to check Database Record? For example, there's a page which itself will periodically check the database, if there's any new data the page will Popup a new page with those data. My question is how can the page keep checking the database?
One of the solution(not good) is that there's a hidden frame with a hidden Servlet, it will refresh every x secs and connect database for every refresh, it seems not a good solution. Please suggest some idea. Thank you.
>the process that may change the database - do you >have any control over it?
Talking about the process, I may have a mobile agent which doing its job under the server or dispatched itself to other server and do query, finally after he finished querying, it will come back to our server to update the database.
<META HTTP-EQUIV="Refresh" CONTENT="30; URL=http://www.yoursite.com/some/place/">
The most modern way IMHO would be to use RTML. http://www.caplin.com/browser/rtml.html
For RTML, have any sample code area? thanks for your suggestion
Thomas, what is JMS solution?
Perhaps I don't understand Gaelic, but I still see no reason that you can't do a meta-refresh in the document to the right, but hey, it seems that you're hell bent on turning something very simple into something complex, so by all means, have at it. I'm sure it's just a matter of semantics, but if the frame on the right is going to be refreshed "all the time" why do you bother trying to refresh the data programmatically?
Chris, the reason for me to have hidden frame for refreshing is that once the user login, it will have a static menu on the left and the main screen on the right displaying information for the users, those refresh html tag can't be embedded inside those frames as those frames will be refreshed all the time.
Like the following image:
Left is menu and right is working place, so it's not reasonable to insert a reload tag at both frames. The only solution is to insert a hidden frame as pic shown, but it's quite 'dirty' if user find that there's frame keeping refreshing..
Originally posted by Thomas Paul:
.....Then applets/applications can subscribe to that topic and get automatically notified whenever ......
in which version of java that a applet can be used as a JMS Client???