100 likes | 199 Vues
Learn about Ajax, prototype submission, cookies, text formatting, and MVC implementations for effective web scripting. Understand the importance of routing requests through the Controller, cookie handling, and text formatting for storage in databases. Prepare for your presentation by covering system goals, architecture, demonstration, design decisions, challenges, improvements, and feedback. Ensure your final submission includes a functional system, sanitized queries, validated data, SQL dump, and user credentials. Package all files into a zip archive with comprehensive documentation.
E N D
NMD202 Web Scripting Week10
What we will cover today Week 9 - Ajax Next week presentation Assignment 1
Prototype • Students Submitted Prototype • Daniel Atkins • Daniel Korn • Jess O’Neill • Kieran Johnson • Matthew Cox • Nang Tip • Sonya Pennington
Prototypes • MVC Implementations – the right way: • Make sure all requests are routed through the Controller, this helps authentication as well as the check is centralized in just one file.
Prototypes • Cookies – cookies are only sent after the response is sent to the browser, so this will not work: • setcookie("hash", md5("pswd“)); • if(isset($_COOKIE["hash"]) • { • //Proceed to authenticated page • }
Prototypes • Cookies – cookies are only sent after the response is sent to the browser, so this will not work: • setcookie("hash", md5("pswd“)); • if(isset($_COOKIE["hash"]) • { • //Proceed to authenticated page • }
Prototypes • Format the text to store in the database – blogs, comments, etc • Use a js or Java applet WYSIWYG editor: • TinyMCE – http://tinymce.moxiecode.com
Presentation • 5 - 10 minutes presentation, you should cover: • The Goal of your system and how you have achieved • Architecture overview of your system • Demonstration of the system • Design decisions • Problems faced in the implementation • How could you improve it • Questions and answers • Feedback from class
Final Submission • Working System: • All screens are working • System only allows authenticated users • All queries sanitized • All data is validated • SQL dump • Usernames and passwords of users in the DB • Send via email subject : NMD202 - Assignment1Final – Student Name • All files should be archived zip file • All documentation and any other instructions to use the system should be attached