Automatically updating web page

Rated 3.97/5 based on 523 customer reviews

So, how do you automatically update a Web page with dynamic elements?

Because actions such as adding or removing a book in the inventory leads the server-side data to change, you must monitor these actions.

Although you may be familiar with Java Swing applications such as "clock," in which data changes prompt GUI updates, or you might have read the implementation details of such applications in some basic Swing development guides, this approach will not work with my scenarios.

Swing already provides a mature way to automatically update the GUI based solely on the internal data status, but JSF does not have good support for refreshing the GUI based on a request from the server side.

Some key elements I do not know: -How to do timing in javascript -How to get some sort of structured data in javascript on the fly from a request to the server(eg php page reading the sensor data) If you use a framework like jquery, there is plenty of plugin for periodical updating.

B) Pushing Data with a js server Data can be push to the browser instead of pulling it.

Leave a Reply