Skip to content

Categories:

Auto Refreshing News System With Built-In HTML Search

Have you ever developed a web Project that needed an auto refreshing data all the time?


If not you will probably have to soon.

By Luiz Eduardo – Nowadays many companies are going web. I particularly work at a company developing a big web-based system which needs this kind of data all the time. It’s really important to give the right information at the right time.
I will show you now how the basic code works, and then we will create an simple auto refreshing news system with built-in HTML search. This is just an example to you understand how it works then use your imagination and see the endless possibilities with this script.
The following image illustrates how this script works:
HTML Code – All you have to create in your HTML is a simple div to receive the data.

JavaScript Code – We will create a function that’s called repeatedly in a 20000ms (20 sec) interval right after his execution.

PHP Code – The PHP code really doesn’t matter. It actually may be almost anything: another HTML, a Class, function or any script you may want to run.

Still quite simple, isn’t it? One more time I’m showing you just one example that came to my mind but don’t forget to just allow your imagination to do the job!

Posted in Uncategorized.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.