70 likes | 172 Views
AJAX 1 Assignment. The Pages. I have provided a old example of the admin area for the music site. Not all pages are in this example You only need to create the Artists and Albums pages The pull down to select albums should also be generated by AJAX calls. Artists Page.
E N D
The Pages • I have provided a old example of the admin area for the music site. • Not all pages are in this example • You only need to create the Artists and Albums pages • The pull down to select albums should also be generated by AJAX calls.
Artists Page • The two fields that need to be editable are the name (text) and biography (textarea). • The user needs to be able to update, insert and view the artists. • The pull down to select the artists must be updateable and retain state when you update and insert records. • A response when you update and insert is necessary.
Albums Page • The two fields that need to be editable are the name (text) and artists (pulldown). • The user needs to be able to update, insert and view the albums. • The pull down to select the albumsmust be updateable and retain state when you update and insert records. • A response when you update and insert is necessary.
Mark breakdown • 10% Overall structure for wireframe and navigation • 10% functional design • 20% artists AJAX calls • 20% artists php code • 20% albums AJAX calls • 20% albums php code
PHP code • The php code will generate a JSON file • Watch out that you stripslashes, nl2br and htmlspecialchar text before using it in the JSON file. • The code will use Exception handling by using try and catch. • The code will provide feedback to the user with indications of success and failure.
AJAX Code • You can use jQuery binds to associate functions to code. • Have your code well formatted. • You will need to replace <br /> with \r before place data into text or textareas • You can use tiny_mce if you wish.