Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.

Slides:



Advertisements
Similar presentations
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Advertisements

Introduction to JavaScript
The Web Warrior Guide to Web Design Technologies
Kyung Hee University 1 1 Application Layer. 2 Kyung Hee University Position of Application Layer.
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
Web Page Behavior IS 373—Web Standards Todd Will.
Guide To UNIX Using Linux Third Edition
CS 299 – Web Programming and Design Overview of JavaScript and DOM Instructor: Dr. Fang (Daisy) Tang.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Web Programming Material From Greenlaw/Hepp, In-line/On-line: Fundamentals of the Internet and the World Wide Web 1 Introduction The JavaScript Programming.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
ITIS 1210 Introduction to Web-Based Information Systems Chapter 24 How Websites Work with Databases How Websites Work with Databases.
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
JavaScript Defined DOM (Document Object Model) General Syntax Body vs. Head Variables Math & Logic Selection Functions & Events Loops Animation Getting.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Internet Mark-up Languages CO32036 Part Lecture: Elementary JavaScript.
DOM and JavaScript Aryo Pinandito.
DHTML: Dynamic HTML Internet Technology1. What is DHTML? A collection of enhancements to HTML ► To create dynamic and interactive websites Combination.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
What is Java Script? An extension to HTML. An extension to HTML. Allows authors to incorporate some functionality in their web pages. (without using CGI.
Introduction to Applets CS 3505 Client Side Scripting with applets.
Lesson13. JavaScript JavaScript is an interpreted language, designed to function within a web browser. It can also be used on the server.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
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 
Introduction.  The scripting language most often used for client-side web development.  Influenced by many programming languages, easier for nonprogrammers.
JavaScript - A Web Script Language Fred Durao
44238: Dynamic Web-site Development Client Side Programming Ian Perry Room:C48 Extension:7287
Event JavaScript's interaction with HTML is handled through events that occur when the user or browser manipulates a page. When the page loads, that is.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
By Tharith Sriv. To write a web page you use: HHTML (HyperText Markup Language), AASP (Active Server Page), PPHP (HyperText Preprocessor), JJavaScript,
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
Introduction into JavaScript Java 1 JavaScript JavaScript programs run from within an HTML document The statements that make up a program in an HTML.
COS 125 DAY 20. Agenda Assignment 8 not corrected yet Assignment 9 posted  Due April 16 New course time line Discussion on Scripts 
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
CIS 3.5 Lecture 2.3 "Introduction to JavaScript".
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
INTRODUCTION JavaScript can make websites more interactive, interesting, and user-friendly.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Understanding JavaScript and Coding Essentials Lesson 8.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
Introduction to JavaScript LIS390W1A Web Technologies and Techniques 24 Oct M. Cameron Jones.
CGS 3066: Web Programming and Design Spring 2016 Introduction to JavaScript.
JavaScript Wrap Up JavaScript is a versatile programming language … if you know it, you can learn others © 2004, Lawrence Snyder.
1 The Internet Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
SE-2840 Dr. Mark L. Hornick 1 Dynamic HTML Handling events from DOM objects.
G046 – Lecture 2A Recognising Web-Technologies Mr C Johnston ICT Teacher
Week 3: Introduction to Javascript
Week 4: Introduction to Javascript
Nick Sims Scripting Languages.
Section 17.1 Section 17.2 Add an audio file using HTML
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
DHTML Javascript Internet Technology.
Chapter 27 WWW and HTTP.
DHTML Javascript Internet Technology.
Web Design and Development
Tutorial 10: Programming with javascript
Web Programming and Design
Week 5: Recap and Portfolio Site
Web Programming and Design
Web Programming and Design
Introduction to Web programming
Presentation transcript:

Web Programming Overview

Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming language used to create applets (small programs) or stand- alone applications; usually runs on local machine –CGI (Common Gateway Interface): written in a programming language (e.g. C, Perl); runs on server –JavaScript: scripting language embedded in HTML to add dynamic features to Web pages

Java and CGI Programming; beyond the scope of this class Can use pre-made applets and scripts in your site allowing you to have interaction in pages. To include a basic applet (in a Web page): Java code is in separate file(s) - class files Need Java-enabled browser

Java and CGI CGI code is in separate file(s) that reside in the cgibin directory of the Web server CGI is commonly used for processing forms, counters, guest books as well as other applications CGI scripts are not allowed on your ASU account except for the pre-made ones described at the ASU Web Jukebox

JavaScript JavaScript can change the contents of a Web page after it has been rendered by the browser. –Interaction with user through forms and controls –Create visual effects such as animation –Control the Web browser window itself. Need JavaScript-enabled browser to utilize it. Can make your own or use pre-made scripts.

JavaScript JavaScript can go in the HTML file: Or be included as a separate code file: The code is executed by a JavaScript interpreter in the browser.

JavaScript Javascript can go between the HEAD or BODY tags. Try to include as much of the Javascript as possible in the section as it is processed before the body of the page is displayed.

JavaScript Javascript treats many items as objects –Methods: what the object can do / function, e.g. document.write(“Hello”) –Argument: information that can be passed to a method (e.g. a string like “Hello”) –Variables: values that are stored in memory and manipulated (e.g. employeeName) The Document object represents the contents of the browser’s window.

JavaScript and Event Handling JavaScript can react to events that happen in the Web browser. Event - an action, usually initiated by the user. –Moving the mouse –Clicking the mouse –Pressing a key When an event occurs, it triggers the execution of JavaScript code.

JavaScript Events include: onMouseOver - when the mouse is over a particular item onMouseOut - when the mouse moves out of a particular area onClick - when the mouse clicks on a particular item onKeyDown - when a key on the keyboard is pressed