1 / 13

Web Extensions – Server side

Web Extensions – Server side. CSc 2320 Fall 2013. In this chapter. Dynamic pages programming Database Others JQuery XML Ajax. Dynamic pages programming. Dynamic pages v.s . static pages Static pages: Only html, CSS, JavaScript Nearly no variations according to request

umeko
Download Presentation

Web Extensions – Server side

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web Extensions – Server side CSc 2320 Fall 2013

  2. In this chapter • Dynamic pages programming • Database • Others • JQuery • XML • Ajax

  3. Dynamic pages programming • Dynamic pages v.s. static pages • Static pages: • Only html, CSS, JavaScript • Nearly no variations according to request • Cost time to edit and update • Dynamic pages: • Add dynamic page techniques • Diversity • Easy to apply and update • Choose one and get started • ASP: Active Server Pages • PHP: PHP Hypertext Preprocessor • JSP: Java Server Pages

  4. Dynamic pages programming • How do the server pages work? • Mix programming code in html. • Html only relies on web server • Programming code in html relies on compiler or other kind language analyzer. • Html file is for presentation structure. • Programming code describe and process the logic.

  5. Comparisons of APS, PHP and JSP • Commons: • All run in server side, user side is so light (only a browser is needed). • Advantages: • ASP: • use easy languages like VBScript • Compatible with ActiveX Scripting and plug-in provided by third party like Perl. • ActiveX server components very extensible

  6. Comparisons of APS, PHP and JSP(cont.) • Advantages: • PHP: • Great database connection functions with all kinds of database. Best with MySQL • Easy to learn • JSP: • Use Java • Server components: reuse, cross-platform • Separate the production of pages and view of pages more clearly.

  7. Server side design model • MVC: Model, View and Control model • Model: application, processor • View: present the data • Control: input and output between database and model processor.

  8. MVC model • JSP > ASP > PHP • Popular frameworks for quick deployment of JSP. • Spring • Struts • Hibernate

  9. Database • Database • SQL Server • MySQL • Oracle • Language: • SQL: Structured Query Language • Learn in database class.

  10. JQuery • jQuery is a lightweight, "write less, do more", JavaScript library (from W3School) • HTML/DOM manipulation • CSS manipulation • HTML event methods • Effects and animations • AJAX • Utilities

  11. XML • eXtensible Markup Language • Most used in data transmission on Web • Open interfaces • Data communication between two websites • E.g., • ESPN API

  12. Ajax • Asynchronous JavaScript and XML • technique for creating fast and dynamic web pages • web pages can be updated asynchronously by exchanging small amounts of data with the server behind the scenes. • E.g., • Instagram • Google hint • Facebook status bar and messages updating without refresh. • How to use? • Can use JQuery

  13. End of all lectures • Wednesday: • Q&A about projects.

More Related