Data
Data
===
The exercise for the 2nd Program. This one is on Multi-stage download.
(We will discuss in class in detail. The idea is straight-forward)
Notes:
1. When you search for the book for an ISBN, no need to read the
database
or files. You can hardcode book details for around 5 ISBNs and
return them
to the client as search results.
3. You can provide a time gap of around 3 seconds before you download
the next content. You have to decide whether you will download the
links
or images (logo etc) or the search box with the button.
5. After the entire download, the page looks as shown in the attached
jpeg.
6. As you make the user wait for more content, you must have place
holders
(possibly <div> elements) which have a "gif" file to convey that
more
information is coming. Use the attached gif file. As soon as the
initial
download is over, the gif will be placed in 3 places (for the
images, the links
and the search box)
Ex:
The file can be named links.text and can have the following
content:
CSE;http://www.cs.pes.edu
ECE;http://www.ec.pes.edu
EEE;http://www.eee.pesit.edu
xhr.open("GET", "http://localhost/links.txt",true);
1) A client side HTML5 file (which has the initial content and also
the
AJAX code to do the Multi-stage download)
2) A text file on the server which has the hrefs' info (see point 9
above)
4) Images and the gif (see attached along with this instructions
file)