JavaScript Tabriz university 2009. Its September 1995.

Slides:



Advertisements
Similar presentations
Introducing JavaScript
Advertisements

Essentials for Design JavaScript Level One Michael Brooks
Java Script Session1 INTRODUCTION.
HTTP Request/Response Process 1.Enter URL ( in your browser’s address bar. 2.Your browser uses DNS to look up IP address of server.com.
The Web Warrior Guide to Web Design Technologies
Introduction to Java Kiyeol Ryu Java Programming Language.
1 Owais Mohammad Haq Department of Computer Science Eastern Michigan University April, 2005 Java Script.
Lecture 3B: Client-Side Scripting IT 202—Internet Applications Based on notes developed by Morgan Benton.
Tutorial 10 Programming with JavaScript
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
2012 •••••••••••••••••••••••••••••••••• Summer WorkShop Mostafa Badr
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
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
JavaScript: Control Structures September 27, 2005 Slides modified from Internet & World Wide Web: How to Program (3rd) edition. By Deitel, Deitel,
CS346 - Javascript 1, 21 Module 1 Introduction to JavaScript CS346.
HTML Forms and Scripts. Session overview What are forms? Static vs dynamic Client-side scripts –JavaScript.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
Introduction to JavaScript Kirkwood Continuing Education © Copyright 2014, Fred McClurg All Rights Reserved.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
Java Beserkers Group 4. Start of Java Development began on June of 1991 by a group of computer scientist at the Sun Mircrosystems Company Development.
Javascript Languages By Rapee kamoltalapisek ID:
DOM and JavaScript Aryo Pinandito.
JavaScript By: Louis Roselli & Michael Reynolds. Problem Domain JavaScript is programming code that can be inserted into HTML pages. JavaScript inserted.
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.
Tutorial 10 Programming with JavaScript. XP Objectives Learn the history of JavaScript Create a script element Understand basic JavaScript syntax Write.
An Introduction to JavaScript Summarized from Chapter 6 of “Web Programming: Building Internet Applications”, 3 rd Edition.
1 Welcome to CSC 301 Web Programming Charles Frank.
JavaScript - A Web Script Language Fred Durao
Client-side processing in JavaScript.... JavaScript history Motivations –lack of “dynamic content” on web pages animations etc user-customised displays.
LOGO Introduction to Client-Side Scripting and JavaScript CHAPTER 9 Eastern Mediterranean University School of Computing and Technology Department of Information.
Javascript. What is JavaScript? Scripting (interpreted) language designed for the web Beware: JavaScript is case sensitive.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
1 JavaScript
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.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
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. Slide 2 Lecture Overview JavaScript background The purpose of JavaScript A first JavaScript example Introduction to getElementById.
JavaScript Overview Developer Essentials How to Code Language Constructs The DOM concept- API, (use W3C model) Objects –properties Methods Events Applications;
Introduction to JavaScript Fort Collins, CO Copyright © XTR Systems, LLC Introduction to JavaScript Programming Instructor: Joseph DiVerdi, Ph.D., MBA.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
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.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Javascript ECMA Script. Scripting Languages Executed by an interpreter A program that reads & runs commands;advanced enough to be a lang Parsed when.
JavaScript and AJAX 2nd Edition Tutorial 1 Programming with JavaScript.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
JavaScript: A short introduction Joseph Lee Created by Joseph Lee.
Brief Look InTo JavaScript Dr. Thomas Hicks Computer Science Department Trinity University.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Module 1 Introduction to JavaScript
JavaScripts.
Introduction to Client-Side Scripting and JavaScript
Database Applications Using Internet Technology
CIS 388 Internet Programming
Client-Side Validation with Javascript
JavaScript Introduction
JavaScript an introduction.
JAVASCRIPT Pam Kahl | COM 585 | Spring 2010.
Tutorial 10 Programming with JavaScript
An Introduction to JavaScript
TypeScript (Microsoft)
TypeScript (Microsoft)
Introduction to JavaScript
Information Retrieval and Web Design
Presentation transcript:

JavaScript Tabriz university 2009

Its September 1995

Netscape Version 2.0 of browser is released.

Its first version to come with the scripting language.

the name of the language was first Mocha and then, when released, LiveScript

In December of that year Netscape made a marketing deal with Sun and renamed the language to

What is JavaScript?

JavaScript is a client-side scripting language. If the browser supports the language, JavaScript grants access to the current page and lets the script determine properties of the client, redirect the user to another page, access cookies, and do much more.

Microsoft included JavaScript support from Internet Explorer version 3 onward (mid-1996).

For legal reasons the language was called JScript.

Microsoft started to include additional, IE-only features to JScript.

In 1997, the standard ECMAScript (ECMA-262) was published; JavaScript is therefore the first implementation of that standard. ECMAScript became an ISO norm in ECMA: European Computer Manufacturers Association

Around 1997 or 1998, the browser war between Netscape and Microsoft reached a climax, with both vendors adding new, incompatible functionality to version 5 of their browsers.

Vs

Netscape scrapped the idea of releasing browser version 5 and decided to start all over with Netscape 6, which helped Internet Explorer to expand its market share to over 90%.

It took the then-founded Mozilla project several years to come to life again. The very popular Firefox browser was based on Mozilla and started to take market share away from Microsoft.

Other browsers, by the way, support JavaScript as well. Differences are subtle, but still can be extremely annoying when one is developing a browser-agnostic web application.

Internet Explorer

Mozilla Firefox Epiphany Camino Galeon

Opera

Konqueror

Safari

Java Vs JavaScript

Java 1991 Sun Microsystems. Called Oak Called Java.

Java A simple, secure, portable, object oriented, robust, multi-threaded, architecture-neutral, interpreted, high performance, distributed and dynamic programming language.

Java Vs JavaScript JavaScript was developed by Netscape Java was developed by Sun

Java Vs JavaScript JavaScript – Cannot draw, multi-thread, network or do I/O Java – Cannot interact with Browser or control content

Java Vs JavaScript JavaScript – Cannot draw, multi-thread, network or do I/O Java – Cannot interact with Browser or control content

JavaScript We’ll call collections of JavaScript code scripts, not programs JavaScript and Java are only related through syntax JavaScript’s support for objects is very different

Object Orientation and JavaScript JavaScript is NOT an object oriented programming language: – Does not support class based inheritance – Cannot support polymorphism

Object Orientation and JavaScript JavaScript objects are collections of properties, which are like the members of classes in Java and C++

What is it used for today? Handling User Interaction: – Checking for accuracy and appropriateness of data entry from forms – Doing small calculations/manipulations of forms input data – Save data as cookie so it is there upon visiting the page Reduce web server processing load Reduce delay when users’ input is wrong

Generating Dynamic HTML documents Controlling applets and calling Java from JavaScript Accessing JavaScript from Java Allow further capabilities together with other technologies: – DHTML ( Dynamic HTML) – AJAX (Asynchronous JavaScript and XML)

Language Basics

JavaScript in HTML directly, as in JavaScript script – Or indirectly, as a file specified in the src attribute of, as in <script type = "text/javaScript" src = "myScript.js">

Example <!-- // this is a comment document.write(“Hello World!!”) ; alert(“Done!”) // -->

Syntax Variables Functions Objects … Syntax based on C/C++/Java Case Sensitive

I need JS code WRITE STEAL

References: JavaScript™ Phrasebook: Essential Code and Commands – By Christian Wenz – Sams