Basicallly there are two types of websites you can design
1.Static website
2.Dynamic website
Static website:
Static website contains only static data,it means every time we can see the same data which contain static content with html pages and some images.
there is no interaction with database.(here we can provide dynamic responsive nature with javascript with static data).
Dynamic website:
The website which can interact with database is known as dynamic website.if there is any update in database it will be show in UI.
So if we need to make a dynamic website then we need a serverside technologies like java ,php,.Net which are having interaction with database
Why do we are unable to interact db with javascript?
Because security issues
So how can we develop dynamic websites with frontend technology?
Its simple we can use other websites data who can share their API's or RSS feed,this data will be in the form of JSON or XML.
We can get the data by reading API documents and Calling Urls using 'AJAX'.After getting the response we can parse the response and display data in UI.
the following are some url's for getting data
1.getting news in asia
https://in.news.yahoo.com/rss/asia
2.getting cricket news in india
http://www.espncricinfo.com/rss/content/story/feeds/6.xml
3.Get show times
http://data.tmsapi.com/v1.1/movies/showings?startDate=2015-08-19&zip=78701&api_key=(APIKEY needed)

No comments:
Post a Comment