View Full Version : Refreshing Certain Areas of an HTML Document

09-24-2005, 09:29 AM
Is it possible to refresh certain areas of a document when a button is pressed.

Like input fields between some div or p tags?

09-25-2005, 12:56 AM
It is possible using AJAX (Asynchronous Javascript and XML) which requires both some Javascript attached to the button to make the refresh request and some server side scripting to deliver the new content. It would only work on those browsers that support the appropriate Javascript commands that allow the servr side call.

Alternatively you could use an iframe to contain the refreshable content as a separate page.

09-25-2005, 09:33 AM
Hey, thanks for the reply, felgall.

I've had bit of a look at Ajax, but dont really see how it works.
(I dont know too much about JavaScript unfortunately.)

Can you possibly explain it to me or post some code?