These are some demo applications developed using HTML, Javascript, and PHP:
- Bart Train Arrivals
- Image Viewer
Uses a Bart RSS feed. When the page is loaded, javascript makes a call to php on the server to get a list of stations. A Php script accesses the Bart feed and extracts a list of station names and sorts them. This data is then returned to the page. A javascript function uses this sdata to poplualte the selection list.
When a station is selected and Arrival Times is clicked, another call is made to a php script which gets the latest informations from the Bart feed, processes it and returns it to the calling page. This data is then formatted and displayed.
In this page, a call is made upon load to a php script which does a scandir of the image directory and returns an array of file names. A javascript function uses this data to popluate a selection list. The user then selects a file name and clicks on View to see the image.
Slideshow, when clicked, will go through the list of image files, displaying each one for two-seconds. Note that when Slideshow is clicked, the Stop Slideshow button appears. When Stop is clicked, the Stop button is hidden and the selected item is reset.