and basicly what I want is, I want to be able to every 5 seconds go and refresh the Div parts.
For Example:
in the <div>Test1</div> part I want page1.html to appear and refresh every 5 seconds
in the <div>Test2</div> part I want page2.html to appear and refresh every 5 seconds
in the <div>Test3</div> part I want page3.html to appear and refresh every 5 seconds
anyone know how to do this.
I am only using Javascript (I am not using PHP or ASP)
Thanks.
September 19th, 2008, 08:50 AM
olivthill
Re: Refresh a Div...
If you are not using PHP or ASP (or JSP), only Javascript then every thing is on the client side.
1. I am not sure you really want to stay on the client side.
2. If you stay on the client side, you don't need Ajax, because Ajax is used for updating components in the client page with data coming from the server.
You can set a timer triggering a function that will change the content of your divs with