JavaScript Teppo Räisänen LIIKE/OAMK 2011. HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.

Slides:



Advertisements
Similar presentations
1 What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight.
Advertisements

MWD1001 Website Production Using JavaScript with Forms.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Introduction to JavaScript
Javascript Introduction Norman White Material is from w3schools.com Go there to run examples interactively.
The Web Warrior Guide to Web Design Technologies
HTML Markup language - controls appearance and content of a document Javascripts Various HTML tags.
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
JavaScript- Introduction. What it is and what it does? What it is? It is NOT Java It is NOT Server-side programming Users can see code It is a client-side.
Multiple Tiers in Action
Web Page Behavior IS 373—Web Standards Todd Will.
CS 299 – Web Programming and Design Overview of JavaScript and DOM Instructor: Dr. Fang (Daisy) Tang.
JavaScript and The Document Object Model MMIS 656 Web Design Technologies Acknowledgements: 1.Notes from David Shrader, NSU GSCIS 2.Some material adapted.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
1 Forms A form is the usual way that information is gotten from a browser to a server –HTML has tags to create a collection of objects that implement this.
HTML Forms and Scripts. Session overview What are forms? Static vs dynamic Client-side scripts –JavaScript.
JavaScript Defined DOM (Document Object Model) General Syntax Body vs. Head Variables Math & Logic Selection Functions & Events Loops Animation Getting.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Bridges To Computing General Information: This document was created for use in the "Bridges to Computing" project of Brooklyn College. You are invited.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
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.
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.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Javascript. Outline Introduction Fundamental of JavaScript Javascript events management DOM and Dynamic HTML (DHTML)
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
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
JavaScript Syntax, how to use it in a HTML document
JavaScript - Basic Concepts Prepared and Presented by Hienvinh Nguyen, Afshin Tiraie.
An Introduction to JavaScript By: John Coliton Tuesday, November 10, 1998 Center for Teaching and Learning.
Introduction to JavaScript CS101 Introduction to Computing.
44238: Dynamic Web-site Development Client Side Programming Ian Perry Room:C48 Extension:7287
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.
 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.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
JavaScript Defined DOM (Document Object Model) General Syntax Body vs. Head Variables Math & Logic Selection Functions & Events Loops Animation Getting.
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.
CIS 3.5 Lecture 2.3 "Introduction to JavaScript".
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
JavaScript & Introduction to AJAX
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
G046 – Lecture 2A Recognising Web-Technologies Mr C Johnston ICT Teacher
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
PHP Assignment Help BookMyEssay. What is PHP PHP is a scripting language generally used on web servers. It is an open source language and embedded code.
Introduction to.
Javascript and Dynamic Web Pages: Client Side Processing
Unit M Programming Web Pages with
Using JavaScript to Show an Alert
Unit M Programming Web Pages with
JavaScript.
Database Driven Websites
Introduction to JavaScript
JavaScript an introduction.
DHTML Javascript Internet Technology.
A second look at JavaScript
DHTML Javascript Internet Technology.
Web Design and Development
Introduction to JavaScript
Tutorial 10: Programming with javascript
Hypertext Preprocessor
Presentation transcript:

JavaScript Teppo Räisänen LIIKE/OAMK 2011

HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It adds functionality and interaction, and improves usability

General Information JavaScript (JS) is a programming language for interactie Web pages Mouse event based functionalities Input validation Dynamic menus JS is especially good for validating form input

General Information HTML does not provide means for input validation Validation on server side (PHP…) is possible but slower (Why?) There are plenty of available scripts for different kinds of validation processes

JavaScript - Basics JS scripts are usually executed on the client-side The scripts are usually rather simple and small-scaled programs The execution of the scripts is based on runtime interpreting

JavaScript - Basics JS is a fully-scaled programming language: functions control structures string processing The inbuilt functionalities of the JS have been specialized for control of a browser

JavaScript & HTML JS script can be embedded into a HTML page by including scripting section into the head element writing the script part into an.js file and including the file into the page including the script into the definition of an HTML element

Example 1 Automatic focus to a form field Without the script the user must point the mouse to the form field The script is executed when the body of the page is loaded The script will improve the usability of the page

Example 2 Validation of an field Validation on the client side is faster than server side validation onsubmit-value is defined in the beginning tag of the form -> Validation happens when the form is being submitted The function will recieve the HTML form as a parameter

Compatibility There are some issues with compatibility Check

HTML DOM DOM Document Object Model JavaScript can access HTML elements trough DOM In JavaScript: var object = document.getElementById(”elementId”); object.value = ”interesting”;