Lecture 3B: Client-Side Scripting IT 202—Internet Applications Based on notes developed by Morgan Benton.

Slides:



Advertisements
Similar presentations
Essentials for Design JavaScript Level One Michael Brooks
Advertisements

Introduction to JavaScript
Standards and Increasing Maintainability on Web- based Systems James Eaton SE4112/16/2006.
DT228/3 Web Development WWW and Client server model.
Understand Web Page Development Software Development Fundamentals LESSON 4.1.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Server-Side vs. Client-Side Scripting Languages
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
1 Owais Mohammad Haq Department of Computer Science Eastern Michigan University April, 2005 Java Script.
© 2010, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet 1.
Working with JavaScript. 2 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page Working with Variables.
HTML Recall that HTML is static in that it describes how a page is to be displayed, but it doesn’t provide for interaction or animation. A page created.
Technologies for EC/EB Walt Scacchi FEMBA 290 Winter 2003.
Lecture 4B: Server-Side Scripting IT 202—Internet Applications Based on notes developed by Morgan Benton.
ITM352 Javascript and Dynamic Web Pages: Client Side Processing.
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.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Javascript and the Web Whys and Hows of Javascript.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
4.1 JavaScript Introduction
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.
HTML Forms and Scripts. Session overview What are forms? Static vs dynamic Client-side scripts –JavaScript.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Advanced Web Design Scripting Tutorial Chapters. Scripting Intro The scripting part of the forthcoming Advanced Web Design textbook introduces you to.
JavaScript Tabriz university Its September 1995.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Lesson13. JavaScript JavaScript is an interpreted language, designed to function within a web browser. It can also be used on the server.
XP Tutorial 10New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with JavaScript Creating a Programmable Web Page for North Pole.
An Introduction to JavaScript Summarized from Chapter 6 of “Web Programming: Building Internet Applications”, 3 rd Edition.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
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)
Announcements Due dates extended: Project 1B—Wednesday by 10pm rule Thursday by 10pm Lab 5—Friday by 10pm Next week Labs 6/7—Tuesday by 10pm 11/19/2015D.A.
Introduction to JavaScript CS101 Introduction to Computing.
RUBRIC IP1 Ruben Botero Web Design III. The different approaches to accessing data in a database through client-side scripting languages. – On the client.
Cs332a_chapt10.ppt CS332A Advanced HTML Programming DHTML Dynamic Hypertext Markup Language A term describing a series of technologies Not a stand-a-lone.
ECA 225 Applied Interactive Programming1 ECA 225 Applied Online Programming basics.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
JavaScript Introduction. Slide 2 Lecture Overview JavaScript background The purpose of JavaScript A first JavaScript example Introduction to getElementById.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
JavaScript Overview Developer Essentials How to Code Language Constructs The DOM concept- API, (use W3C model) Objects –properties Methods Events Applications;
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Introduction to JavaScript Fort Collins, CO Copyright © XTR Systems, LLC Introduction to JavaScript Programming Instructor: Joseph DiVerdi, Ph.D., MBA.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
JavaScript & Introduction to AJAX
Lesson 30: JavaScript and DHTML Fundamentals. Objectives Define and contrast client-side and server-side technologies used to create dynamic content for.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
IN THIS LESSON WE WILL REVIEW THE STRUCTURE OF THE INTERNET AND HOW BROWSERS ASSEMBLE WEBSITES BASED ON INSTRUCTIONS THEY RECEIVE FROM SERVERS. Internet.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
Web Development. Agenda Web History Network Architecture Types of Server The languages of the web Protocols API 2.
DHTML.
Web Programming Language
Javascript and Dynamic Web Pages: Client Side Processing
WWW and HTTP King Fahd University of Petroleum & Minerals
Database Applications Using Internet Technology
W3C Web standards and Recommendations
Nick Sims Scripting Languages.
The Internet and HTML Code
JavaScript Introduction
JavaScript an introduction.
Dynamic Web Pages Jin Wu INF 385E Information Architecture
Unit 6 part 3 Test Javascript Test.
Introducing the .NET Framework
JavaScript CS 4640 Programming Languages for Web Applications
JavaScript is a scripting language designed for Web pages by Netscape.
Information Retrieval and Web Design
Presentation transcript:

Lecture 3B: Client-Side Scripting IT 202—Internet Applications Based on notes developed by Morgan Benton

For Today Client-side scripting

Review of Client/Server Model For networked applications, processing power is a valuable resource Most of the time both servers and clients possess processing power (i.e. they each have their own CPU) The decision has to be made about whether to run application logic on the client side, or the server side of the application

Reasons for Using Client-Side Scripting HTML by itself is primarily for presentation of static information and provides poor support for interactivity Using the client’s CPU for processing improves response time of apps Decreases the processing load of the server making the server run more efficiently

Reasons NOT to use Scripts Browser compatibility Some users intentionally disable scripts in their browsers Scripts have limited permissions to resources on users’ computers

Which Scripting Language? A variety exist including JavaScript, Jscript, VBScript, ECMAScript, Tcl Only JavaScript is supported by all (or at least most) browsers ECMAScript is the standardized version of JavaScript

What is JavaScript JavaScript has almost no connection whatsoever with the Java programming language Developed by Netscape Has evolved into a standard supported by ECMA (European Computer Manufacturers’ Association)

A guideline for using scripts A significant number of people think that scripting should only be used for non- essential functions in a website. In other words, a user should be able to make full use of your site even if he/she doesn’t have a browser that supports scripts or she/he has scripts turned off.

Using Scripts within HTML <!-- /* script goes here */ -->

Putting Scripts in a Separate File <script type=“text/ecmascript” language=“JavaScript” src=“path/to/script.js”> In a separate file labeled script.js you would add your code. This allows you to use the same code in many documents without having to retype the code in each one. Makes maintaining the scripts easier much as CSS makes maintaining formatting for a site easier.

The DOM DOM stands for Document Object Model It is the way that you are able to access the elements on your page document is the top level object and refers to the web page in which the script resides

Let’s do it! Together we will create a script that will dynamically change a graphic on a web page when a user mouses over it.