JavaScript – Quiz #9 Lecture Code: 623358

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

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.
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
WHAT IS AJAX? Zack Sheppard [zts2101] WHIM April 19, 2011.
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
INTRO TO MAKING A WEBSITE Mark Zhang.  HTML  CSS  Javascript  PHP  MySQL  …That’s a lot of stuff!
Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
SYST Web Development 2 SYST Web Development 2 Course Overview and Introduction Client/Server Overview.
Introduction to AJAX AJAX Keywords: JavaScript and XML
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.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Server-side Scripting Powering the webs favourite services.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
CSS/Photoshop Layouts – Quiz #7 Lecture Code:
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
06/10/2015AJAX 1. 2 Introduction All material from AJAX – what is it? Traditional web pages and operation Examples of AJAX use Creating.
Web Design: Basic to Advanced Techniques Fall 2010 Mondays 7-9pm 200 Sutardja-Dai Hall Databases & SQL Lecture Code:
Lecture # 6 Forms, Widgets and Event Handling. Today Questions: From notes/reading/life? Share Personal Web Page (if not too personal) 1.Introduce: How.
Feedback #2 (under assignments) Lecture Code:
Today’s Agenda Course Facilitator Introduction Announcements Quiz Servers and Clients URLs Dreamweaver Setup HTML Introduction – Part 2.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Website Development with PHP and MySQL Saving Data.
WEB SCIENCE. What is the difference between the Internet and the World Wide Web? Internet is the entire network of connected computers and routers used.
1 Welcome to CSC 301 Web Programming Charles Frank.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Web Programming Brian Toone 8/27/2014. Outline for today 1.Understanding the architecture of the web 2.Overview of programming languages – Client-side.
Web Design: Basic to Advanced Techniques Fall 2010 Mondays 7-9pm 200 Sutardja-Dai Hall Introduction to PHP.
1 CSC 301 Web Programming Charles Frank. PHP – Stands for:  Personal Home Page (originally),  PHP: Hypertext Preprocessor (now; follows GNU’s recursive.
הרצאה 4. עיבוד של דף אינטרנט דינמי מתוך Murach’s PHP and MySQL by Joel Murach and Ray Harris.  דף אינטרנט דינמי משתנה עפ " י הרצת קוד על השרת, יכול להשתנות.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
Introduction and Principles Web Server Scripting.
The basics of knowing the difference CLIENT VS. SERVER.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
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.
CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
National College of Science & Information Technology.
Web Programming Language
Tonga Institute of Higher Education IT 141: Information Systems
Web Technologies Computing Science Thompson Rivers University
JavaScript and Ajax (Ajax Tutorial)
Introduction to Dynamic Web Programming
PHP / MySQL Introduction
Database Driven Websites
Web Browser server client 3-Tier Architecture Apache web server PHP
Tonga Institute of Higher Education IT 141: Information Systems
Web Systems Development (CSC-215)
PHP and Forms.
Tonga Institute of Higher Education IT 141: Information Systems
PHP Forms and Databases.
Web Technologies Computing Science Thompson Rivers University
Client-Server Model: Requesting a Web Page
PHP By Prof. B.A.Khivsara Note: The material to prepare this presentation has been taken from internet and are generated only for students reference and.
Web Application Development Using PHP
Presentation transcript:

JavaScript – Quiz #9 Lecture Code:

Today’s Agenda Quiz & Attendance Announcements Dynamic Pages – Part 1 Finish Quiz & Attendance Lab

Announcements Final Project – Topic due tonight Final Project – Layout instructions out Photoshop of main page and navigation Final Project – Website instructions out Get started early! Last day of class: presentations Discussion After Lecture Optional - for those that want to stay

Correction: Writing Javascript! Inline Javascript // JS code here Include.js file Write both in Goes in or

Web Design: Basic to Advanced Techniques Spring 2010 Tuesdays 7-8pm 200 Sutardja-Dai Hall Dynamic Pages – Part 1

What is PHP? Client Side Web Browser HTTP Request (visit website) Interpret and render received files Server Side Web Server Serve Website Send HTML and CSS files Send images Execute JavaScript Send JavaScript code PHP and MySQL Runs in your browser – on the client side

PHP: Hypertext Preprocessor Server-side Scripting language (like JavaScript, unlike HTML and CSS) Dynamically writes HTML pages Has access to server system’s resources Database Image processors Anything else the system can run Bridges client-side interface with server-side service and functionality

Bridging Interface and Service When you type in an address in Google Maps… Google’s servers first take your HTTP request and isolate your user input They then do some magic to return the correct map and search results to you This magic involves a number of things – from database lookups, to accessing other services like traffic info Once this data has been collected for you, it needs to be returned in HTML and CSS PHP aids this process

PHP Use Cases Customization Facebook shows you your profile despite sending the same file to everyone Authentication Login PHP can choose to hide your Facebook profile from those that are unauthorized to view it Access Database on your Behalf When you use Yelp, Yelp does not have html files for every search you could possibly make saved. It generates the pages on the fly.

Food Chain Client Requests File Web Server sees the file is.php PHP Parses.php file requested and writes HTML HTML The result after the php code has been parsed Received by Client JavaScript Included in the HTML file is executed by client Client to Server Via Internet Server to Client Via Internet

PHP Generates HTML Files PHP dynamically writes HTML files which are then downloaded and rendered by the user User AUser B Profile.php w/ php code Profile.php w/ php code parsed for User A Profile.php w/ php code parsed for User B

Client Never Sees PHP Server View of.phpClient View of.php

Exchange of Data Browser Server HTML, CSS, JS, images Request for files Login, password, cookies, …

PHP and User Input GET variables POST variables Cookies

PHP and User Input GET variables Passed via URL in the form of &myVar=value POST variables The result of form submission Can be a single word, a check box, a selector, a file Cookies Set by the server Key, value pairs

PHP and User Input ClientServer cookie(user_id, 10) $_COOKIE[‘user_id’] $_POST[‘user_id’] $_GET[‘user_id’]

GET View Profile Could use PHP to dynamically create this link too…

POST

GET vs POST Q: When do we use a GET request and when do we use a POST request? A: Use a POST request when the result of the request modifies, creates, or deletes data – has lasting effects.

AJAX Both submitting a form (POST) or requesting a URL (GET) require reloading the page. AJAX allows us to perform POST or GET requests without reloading the page.

JavaScript – Quiz #9 Lecture Code: Lab…