ASSIGNMENT:
Create a page that, by using Ajax, monitors the state of the server: when the server meets a certain condition, the page reacts and modifyies itself.
Example:
A given URL delivers the following page:
Snowwhite is sleeping
The page then monitors the server. When on the server something happens, (e.g. a file is created on it, or a certain time is reached) the server's response triggers an action on the page, so that the page changes into:
Snowwhite is awake
THIS IS ONLY AN EXAMPLE: use your imagination!
Do it bare hands! do not use ready-made frameworks auch as jquery.
OPTIONAL: the triggered action causes a style change in the page, by changing the CSS. For instance, bgcolor could be dark when Snowwhite is sleeping, and light otherwise. See e.g. http://stackoverflow.com/questions/1720320/how-to-dynamically-create-css-class-in-javascript-and-apply.
Deadline (strict) Nov. 27
You have to deliver:
- source code
- a report.
The report must have the following structure:
Title Page containing date, title ("Ajax polling"), your name)
Introduction
Code description (describe how your code works - at a general level)
Deployment (screen shots of your app running, documenting the various steps)
Comments and notes (optional: any problems encountered during the project development, any other comment
zip the code, and send the zip and the report via e-mailto : marco.ronchetti at unitn.it
with subject: WEBARCH - 9th WEEK ASSIGNMENT DELIVERY
Create a page that, by using Ajax, monitors the state of the server: when the server meets a certain condition, the page reacts and modifyies itself.
Example:
A given URL delivers the following page:
Snowwhite is sleeping
The page then monitors the server. When on the server something happens, (e.g. a file is created on it, or a certain time is reached) the server's response triggers an action on the page, so that the page changes into:
Snowwhite is awake
THIS IS ONLY AN EXAMPLE: use your imagination!
Do it bare hands! do not use ready-made frameworks auch as jquery.
OPTIONAL: the triggered action causes a style change in the page, by changing the CSS. For instance, bgcolor could be dark when Snowwhite is sleeping, and light otherwise. See e.g. http://stackoverflow.com/questions/1720320/how-to-dynamically-create-css-class-in-javascript-and-apply.
Deadline (strict) Nov. 27
You have to deliver:
- source code
- a report.
The report must have the following structure:
Title Page containing date, title ("Ajax polling"), your name)
Introduction
Code description (describe how your code works - at a general level)
Deployment (screen shots of your app running, documenting the various steps)
Comments and notes (optional: any problems encountered during the project development, any other comment
zip the code, and send the zip and the report via e-mailto : marco.ronchetti at unitn.it
with subject: WEBARCH - 9th WEEK ASSIGNMENT DELIVERY