Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an Ajax based application (front end HTML/JavaScript, back end data file and back end PHP handler) that retrieves and displays one randomly chosen text

image text in transcribed
Create an Ajax based application (front end HTML/JavaScript, back end data file and back end PHP handler) that retrieves and displays one randomly chosen text message from a backend database when the user clicks a button. However, if a new message has been added to the database since the last time it was accessed, then it displays the last message. The backend database can be plain text, or XML or JSON as per your choice. Use the following UI and architecture guideline to complete your work. The backend data file should be written and updated manually for testing purposes. Ul guideline This is the last message from the database. Click here to retrieve a new or a random old message. This is another message. At startup, the application will display the most recently inserted message (which will be the last one) from the backend. You can assume that there will always be at least one message in the file. To implement this, use the onload event on the body element. After clicking on the button, another message will appear. The appearance should be instantaneous (using Ajax). If a new message has been added to the database since then, it will be that one. Otherwise it should be any random message from the file. If you have a small test file repetition is likely so have a large enough set that will enable you to test properly. Click here to retrieve a new or a random old message. Repeating the clicks will keep changing the messages as per the selection mechanism described Marking guideline Startup app displays the last message in the file [4] After button click a randomly chosen message from the file is displayed (using Ajax) [8] When a new message has been added since the last access, that new message is displayed (using Ajax) [3] Create an Ajax based application (front end HTML/JavaScript, back end data file and back end PHP handler) that retrieves and displays one randomly chosen text message from a backend database when the user clicks a button. However, if a new message has been added to the database since the last time it was accessed, then it displays the last message. The backend database can be plain text, or XML or JSON as per your choice. Use the following UI and architecture guideline to complete your work. The backend data file should be written and updated manually for testing purposes. Ul guideline This is the last message from the database. Click here to retrieve a new or a random old message. This is another message. At startup, the application will display the most recently inserted message (which will be the last one) from the backend. You can assume that there will always be at least one message in the file. To implement this, use the onload event on the body element. After clicking on the button, another message will appear. The appearance should be instantaneous (using Ajax). If a new message has been added to the database since then, it will be that one. Otherwise it should be any random message from the file. If you have a small test file repetition is likely so have a large enough set that will enable you to test properly. Click here to retrieve a new or a random old message. Repeating the clicks will keep changing the messages as per the selection mechanism described Marking guideline Startup app displays the last message in the file [4] After button click a randomly chosen message from the file is displayed (using Ajax) [8] When a new message has been added since the last access, that new message is displayed (using Ajax) [3]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

Is this investment worthwhile? Why or why not?

Answered: 1 week ago