English English

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/ard-site/templates/ardsite/library/Designer/Content/SingleArticle.php on line 198

Newsticker with weather forecast implemented in ard Search

A newsticker that is updated every hour with the latest news was implemented in the search engine. The newsticker displays tech news and world news in English and German. But also the weather forecast for this day and the next day.



The newsticker is programmed in Javascript and it loads the data through an XML HTTP request from this server. The news and weather data are processed in the backend of this server and they made available as a txt file that will be used by this newsticker program.



The news data is saved as a string line for line in that txt file. This program reads the text file line for line and it displays a line in a html table row. This is needed so the newsticker can display the news through its vertical slide movement. The newsticker is implemented this way, to save additional request for newsticker data every time the page is loaded.
The source code as a tutorial is available in this website in the tutorial menu section "Javascript".
 

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok