|
Posted by Erwin Moller on 11/02/06 14:00
PSN wrote:
> Hi all,
> Can some one help me if it is possible to refresh a part of a page,
> without reloading the whole page. Let's say, i want to add a small
> message box to my webpage. After writing a message, the user presses
> the send button and i want only this part of the page to refresh and
> give him a status message saying his message was successfully received.
>
>
> If yes, how can i do it ??
>
> thanks.
Hi,
This can be done relatively easy with JavaScript.
PHP only produces output for a browser and is thus not involved in
displaying parts of a page.
The technics you could use are:
1) An IFrame
or
2) AJAX
Have a look here for a quickstart:
www.w3schools.com and look at AJAX.
Regards,
Erwin Moller
PS: Since this is not a PHP related question, I suggest you continue in
comp.lang.javascript, an excellent group with fast responses.
[Back to original message]
|