← Teaching
Web Client and Server Programming Y2, 20cr
Overview
This unit introduces students to:
- Client-side programming (inside a web browser) by embedding program scripts in HTML; using those scripts to
dynamically modify HTML and CSS; asynchronous reading of information from the server (Ajax).
- Server-side programming (across the web) by writing server-side scripts accessing server-side files and
databases.
- The reasons for these two forms of programming and the underlying theory.
Aims
- To develop an understanding of web client and web server scripting technologies and the underlying theory.
- To develop an ability to write and install simple web client scripts.
Learning Outcomes
- Design and implement simple client and server scripts in industry-standard client-side and server-side
languages.
- Demonstrate the uses of programmable web browsers and web servers.
Syllabus
- Web client-and-server architecture; the concepts of web scripting.
- Installation of a minimal web server and SQL server; and other support tools.
- A review of HTML, and an introduction to HTML forms.
- The JavaScript programming language and how to embed scripts into an HTML page.
- The Document Object Model (DOM) — the browser's internal view of a displayed web page.
- Dynamic HTML (DHTML) — using JavaScript to modify the DOM of the HTML of a current web page.
- An introduction to CSS for specification of the style of a displayed web page, and Dynamic CSS (DCSS).
- The PHP language; invoking PHP by embedding scripts in HTML.
- Difficulties and techniques of debugging server-side scripts.
- Sending values to server-side scripts, both via URLs and from HTML forms.
- File-handling in PHP scripts; in particular, issues of concurrent access.
- Using SQL from PHP scripts.
- Using Cookies from PHP and JavaScript; PHP Sessions.
- Review of other PHP library capabilities.
- An introduction to Ajax for obtaining information from a server to client-side.