Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

Lecture 11 Server Side Interaction
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Tutorial 6 Creating a Web Form
DT228/3 Web Development WWW and Client server model.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Server-Side vs. Client-Side Scripting Languages
AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
Chapter Concepts Review Markup Languages
© 2010, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet 1.
IS 360 Course Introduction. Slide 2 What you will Learn (1) The role of Web servers and clients How to create HTML, XHTML, and HTML 5 pages suitable for.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
DT211/3 Internet Development Application Internet Development Application.
Cloud Computing Lecture #7 Introduction to Ajax Jimmy Lin The iSchool University of Maryland Wednesday, October 15, 2008 This work is licensed under a.
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
Introduction to Web Interface Technology (CSE2030)
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
ITM352 PHP and Dynamic Web Pages: Server Side Processing.
INTRODUCTION TO WEB DATABASE PROGRAMMING
4.1 JavaScript Introduction
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net
20-753: Fundamentals of Web Programming 1 Lecture 1: Introduction Fundamentals of Web Programming Lecture 1: Introduction.
Lecture # 6 Forms, Widgets and Event Handling. Today Questions: From notes/reading/life? Share Personal Web Page (if not too personal) 1.Introduce: How.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Java CGI Lecture notes by Theodoros Anagnostopoulos.
JavaScript – Quiz #9 Lecture Code:
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Ventsislav Popov Crossroad Ltd.. 1. What is AJAX?  AJAX Concept  ASP.NET AJAX Framework 2. ASP.NET AJAX Server Controls  ScriptManager, UpdatePanel.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
Web Programming Brian Toone 8/27/2014. Outline for today 1.Understanding the architecture of the web 2.Overview of programming languages – Client-side.
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
Session 1 Chapter 1 - Introduction to Web Development ITI 133: HTML5 Desktop and Mobile Level I
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Higher Computing Science Coding the Web: HTML, JavaScript, PHP and MySQL.
Overview Web Technologies Computing Science Thompson Rivers University.
IN THIS LESSON WE WILL REVIEW THE STRUCTURE OF THE INTERNET AND HOW BROWSERS ASSEMBLE WEBSITES BASED ON INSTRUCTIONS THEY RECEIVE FROM SERVERS. Internet.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Web Technologies Computing Science Thompson Rivers University
JavaScript and Ajax (Ajax Tutorial)
AJAX.
CMP Creating Your Personal and Small Business Web Sites
Web Technologies Computing Science Thompson Rivers University
Presentation transcript:

Dynamic Web Pages Bert Wachsmuth

Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal, inline, selector, properties, ids, classes, elements  MS Expression Web, local and remote web site, synchronization, Dynamic Web Template

Homework Visit our homepage ~wachsmut/  Check the bold sites  Visit my “demo” site Exercise:  Activate the ‘home’ link and change the link colors to yellow. Define styles for a blog entry, which has three components: the date, a title, and the content.

Dynamic Web Pages  Static web pages are pages that remain the same when you view their URL (unless they were edited by the page creator).  Everything we created so far via HTML and XHTML were static pages.  Dynamic web pages are pages where some or all of the content is dependent on some conditions or user interaction.  Google’s search results are dynamic, as an example, since their content depends on the user search query and on the current state of the Google database(s).

Dynamic Web Pages: Dynamic web pages are created using:  Client-side scripts embedded in an HTML page for processing on the client (your computer)  Server-side programs that are processed on a server computer  A mix of client-side scripts and server-side processing

Server Side Scripts  Server-side dynamic pages are generated at request-time by a program running on a server.  response to a user inputting data on a form  web page generated on the fly from data in a database  Server-side programs can be written in many languages:  JSP (Java Server Pages) or ASP (Active Server Pages)  scripting languages such as PHP or Perl  C, C++  anything else that adheres to a protocol called Common Gateway Interface (CGI) Server-side programming requires special access to the web servers and is therefore not suitable for “simple” users.

Client-Side Programming:  Client-side programs are embedded inside a web pages and execute on the client  Rely on the assumption that the client (Firefox, IE, Safari, Opera) can understand and process the instructions properly.  The language most commonly used is JavaScript  drop-down menus, form data validation, simple simulations/games, event-based changes

Mixed Server/Client:  (Pre-)processing happens on the client to avoid the delay in passing data back and forth to the server  Server processes more complex requests, usually utilizing other resources such as a database.  Google Maps is such a complex, dual purpose “application”.  The hot topic these days: AJAX: asynchronous JavaScript and XML (see XMLhttp://en.wikipedia.org/wiki/Ajax_(programming))

Intro to JavaScript  JavaScript is a scripting language used to enable programmatic access to objects within other applications, such as a web browser  JavaScript is easy to learn, weakly typed, object-oriented language with C/C++/Java – like syntax  JavaScript interpreter build-in to all web browsers  Unrelated to the Java programming language  Named as a result of a co-marketing deal between Netscape and Sun, in exchange for Netscape bundling Sun's Java runtime with their then-dominant browser. […]

JavaScript Examples  Adding text to a web page (ex1.html)  Add the current date (ex2.html)  Data Types and basic operators  Referencing classes such as Date and Math  Events, buttons, and Dialog Boxes (ex3.html)  Functions (ex4.html)  Input parameters and conditionals (ex5.html)  External scripts  Loops (ex7.html)

The DOM  When a web browser reads a proper XHTML document, it constructs a ‘tree’ representation of the data.  That structure is called the Document Object Model, or DOM.  DOM can be manipulated using JavaScript:  the correct way to achieve changes in the layout of a web page  Nicest feature of the DOM  a page is refreshed without reloading when the DOM changes

DOM – Expand/Collapse Manipulating the DOM Manipulating the DOM This is some text inside a paragraph. List item 1 List item 2

DOM – Magic Trick Magic A Magic Trick Click for the Trick

Extended Example  Imagine a cannon that shoots a ball into a square with corners (1,1), (-1,1), (-1,-1), (1,-1).  Assume that the ball always lands inside that square, but at completely random locations  sometimes the balls falls inside a circle of radius 1  other times it falls outside that circle

Extended Example  Let:  T be the total number of shots  I be the number of shots inside unit circle  Compute:  4 * I / T  Explain!