How about using a trigger on the database that instantly knows when the data has changed, like that no unnecessary refreshes have to be done on the client side when the data hasn't been changed?
-----Original Message-----
From: Joe Cheng [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 11:16 AM
To: [EMAIL PROTECTED]
Subject: Re: help me
>> my requirement is to display the data on the front end without any time
interval when ever the data changes in the table that perticular field of
the record only must change on the front end without refreshing the entire
page. (please don't recomend meta tags) <<
I haven't heard of any really great way to do this, at least not using a web
browser (non-applet) as your client. But there are some not-so-elegant
solutions I know of that will work. One is to have a hidden frame on your
page, that will continuously make requests to a JSP (or servlet) on the
server (say every 5 seconds or so), and whenever the information has changed
that JSP will return the JavaScript commands necessary to update the
non-hidden frame. It's not pretty but it does work.
If you don't want to use a hidden frame, you can also embed a small object
of some kind (Flash? Applet?), say 1 pixel by 1 pixel, in the page that has
the ability to poll the server and manipulate the document object model.
If anyone else has an alternate solution I'd love to hear it. But as far as
I know, like Saravanan said, a smarter client like applets (or ActiveX I
guess) is the only good way to do it.
-jmc
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com