To install package just run the below command in terminal or command line. Continue reading
For example I need to refresh the data, whenever new data is added or update in database. But ajax calls will refresh the data based on the interval.
After that I came to know its not proper way to go, because refresh data means whenever new data got inserted or updated it should be reflected.
So I switched over to Nodejs for real-time data stuff, before installing Nodejs.
We will have brief discuss about it.
What is Nodejs ?
When I was thought of posting well know APIs, first in my mind its came IMDB API. A simple question why ?
Because they having huge volume of data with different languages, year and lots more content about the movie.
Also when I was searching for any content or movie, I am able to see the link which give way to IMDb from google. So I thought of posting IMDb API first. Continue reading
Now a days most of the website are providing real-time data streaming, when user visit the website they want to display the content without reloading the page, but how ?
there is a simple way to do it, we are going to create simple html with iframe tag which will call the server page to get the content every 5 seconds.
<title>Codeasearch.com - Tutorial - Working with header refresh using PHP</title>
Global variable is accessible everywhere in the script, for example if you want to access variable which defined in top.
// declaring global variable
var myVariable = 1;
Its accessible inside the function or outside the function as variable.
there is a method call window.variable which will be same as calling the variable inside the function.