Java Script. What is JavaScript ? It is an scripting language, developed by Netscape Navigator. It can be used to replace CGI scripts for client-side.

Slides:



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

HTML. The World Wide Web Protocols Addresses HTML.
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.
Apache Tomcat Server Typical html Request/Response cycle
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
MA10126 Introduction to HTML Gavin Shaddick
Russell Taylor Lecturer in Computing & Business Studies.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
CHAPTER 8 JavaScripts Introduction and the Syntax CSIT225 Internet Programming.
Javascript and the Web Whys and Hows of Javascript.
4.1 JavaScript Introduction
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Agenda Web Development Chapter 7 Review Class Discussion Issues.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
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.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Introduction to JavaScript + More on Interactive Forms.
AJAX Making Dynamic Web pages more Dynamic Jim Hendricks April 25th, 2006.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
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,
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.
1 Week 1 l HTML l Applets Applets and HTML. 2 Overview l Applets: Java programs designed to run from a document on the Internet l HTML: Hypertext Markup.
JavaScript Tutorial 1 - Introduction to JavaScript WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: Introduction to JavaScript (NON.
Chapter 13. Applets and HTML HTML Applets Computer Programming with JAVA.
An Introduction to JavaScript Summarized from Chapter 6 of “Web Programming: Building Internet Applications”, 3 rd Edition.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
JavaScript. During the last lecture We looked at the utility of forms on Web pages We found out about the various components that are used in a form We.
Introduction.  The scripting language most often used for client-side web development.  Influenced by many programming languages, easier for nonprogrammers.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
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.
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.
JavaScript Tutorial 1 - Introduction to JavaScript1 Tutorial 1 Introduction to JavaScript Section A – Programming, HTML, and JavaScript.
An Introduction to JavaScript By: John Coliton Tuesday, November 10, 1998 Center for Teaching and Learning.
Introduction to JavaScript CS101 Introduction to Computing.
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,
Introduction into JavaScript Java 1 JavaScript JavaScript programs run from within an HTML document The statements that make up a program in an HTML.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
Chapter 1 Introduction to JavaScript JavaScript, Third Edition.
Lesson 30: JavaScript and DHTML Fundamentals. Objectives Define and contrast client-side and server-side technologies used to create dynamic content for.
Java Script. introduction Today’s web sites need to go much beyond HTML. browsing through a web site, to actually interact with the web site. The web.
HTML-I Basic HTML Elements. HTML (Hyper Text Markup Language) HTML is a document layout and hyperlink- specification language. i.e. a language used to.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
Brief Look InTo JavaScript Dr. Thomas Hicks Computer Science Department Trinity University.
Module 1 Introduction to JavaScript
Web Basics: HTML/CSS/JavaScript What are they?
JAVA, JAVA Applets, and JavaScript
Intro to JavaScript CS 1150 Spring 2017.
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
Introduction to JavaScript
Unit 6 part 3 Test Javascript Test.
HTML Structure.
An Introduction to JavaScript
MA10126 Introduction to HTML
Information Retrieval and Web Design
Presentation transcript:

Java Script

What is JavaScript ? It is an scripting language, developed by Netscape Navigator. It can be used to replace CGI scripts for client-side processing with lower bandwidth demands and decreasing server load for busy Web servers. JavaScript is an Interpreted Language It can be used to perform repetitive tasks, it can be ideally used for calculating the content of a form based on changes of the data in another field.

What is JavaScript ? Like other scripting language JavaScript is free of development and troubleshooting because it doesn’t need to get compiled. JavaScript is not fully extensible. It has limited set of base objects, properties, methods and data types, which provide enough capabilities to create client-side or server-side applications.

Pros and Cons Development – JavaScript does not require time-consuming compilation, scripting can be developed ion a very short period of time. Adaptability – JavaScript doesn’t include complex syntax commands Platform independence – JavaScript is platform independent and can be used on any for which Navigator 2.0 available Less Overheads – JavaScript programs are usually small and less complicated as compared to Java Applets.

Pros and Cons Limited Built-in Methods – JavaScript has a very limited set of built-in methods. Code security – As JavaScript is used with the HTML file the possibility of providing security to the coding part of the program is less, there is no way to protect the code from being copied and reused. Lack of debugging facility – Some HTML editors support debugging but not as those available for C,C++.

JavaScript in HTML The tags used to begin and end a script are: – and tags. The script tag takes two basic attributes, which determine how the JavaScript is incorporated into the HTML file. AttributeDescription SRC LANGUAGE URL for a file containing JavaScript source code. The file should have an extension.js This attribute indicates the language used in the Script.

JavaScript in HTML The opening tag should appear like this: The language=“JavaScript” command is there so the browser can tell the code that follows is in JavaScript and not another scripting language, e.g. VBScript. JavaScriptcode……

Adding of JavaScript JavaScript scripts and programs can be included in the header or body section of an HTML file. Here is an example below: // Write a heading document.write(" This is a heading "); // Write two paragraphs: document.write(" This is a paragraph. "); document.write(" This is another paragraph. ");