Lec0 Web Programming
Lec0 Web Programming
Dr Walid M. Aly
1
Web Programming CS433 lec1 Dr Walid M. Aly
Description
This course is an introduction of common,
primarily open-source, technologies used to
develop and maintain server sites on the Web.
A variety of client-side and server-side
technologies are covered.
3
Web Programming CS433 lec1 Dr Walid M. Aly
Course Group Home Page
https://groups.yahoo.com/groups/CS614/
4
Web Programming CS433 lec1 Dr Walid M. Aly
Textbook
Robert W. Sebesta, Programming the World Wide Web, Publisher: Addison Wesley
5
Web Programming CS433 lec1 Dr Walid M. Aly
Basic Information
You use your Browser to display the web pages stored at a distant web server by writing
the URL of the page .
All communications between browsers and servers use Hypertext Transfer Protocol (HTTP)
The two main web servers worldwide are Apache & IIS (Microsoft Product)
This course is about applying your programming skills to the development of dynamic Web pages and
applications.
Client Server
6
Web Programming CS433 lec1 Dr Walid M. Aly
Web Programming
Client Side Technologies Server Side Technologies
Download program with Web page, execute on client Can store and execute program on Web server, link
machine from Web page
simple, generic, but insecure
more complex, requires server
privileges, but secure
HTML&XHTML Perl
CSS CGI
JavaScript JSP
JavaApplets PHP
XML ASP
7
Web Programming CS433 lec1 Dr Walid M. Aly
HTML Demo Page
<html>
HTML <body>
<h1>My First Heading</h1>
• HTML :Hyper Text Markup Language <p>My first paragraph.</p>
• Current Version :HTML5 </body>
</html>
CSS
•CSS : Cascaded Style Sheets
•CSS Seprates the content from the formatting rules
Javascript Demo1
Javascript Demo2
Database: courses
Table :cs_ courses
http://127.0.0.1/FormQuery.php
Web Programming CS433 lec1 Dr Walid M. Aly
AJAX
• AJAX is an acronym for Asynchronous JavaScript And XML.
• The technology uses JavaScript to send and receive data between a web browser
and a web server.
• The AJAX technique makes web pages more responsive by exchanging data
with a server behind the scenes, instead of reloading an entire web page each
time a user makes a change.
• With AJAX, web applications can be faster, more interactive, and more user
friendly.
http://localhost/ajaxdemo1/SwitchContent.html
Web Programming CS433 lec1 Dr Walid M. Aly
Assessment Scheme
• Project Based
• Assignment one : 15marks (HTML5-CSS)
• 7th week Exam : 15 marks
• Assignment 2: 10 marks (HTML5-JS)
• 12th week Exam : 10 marks
• Assignment 3: 5marks (HTML5-JS -PHP-MySQL)
• Assignment 4: 5marks (HTML5-JS -PHP-MySQL-AJAX)