Презентация - Javascript: introduction to scripting

Смотреть слайды в полном размере
Презентация Javascript: introduction to scripting


Вашему вниманию предлагается презентация на тему «Javascript: introduction to scripting», с которой можно предварительно ознакомиться, просмотреть текст и слайды к ней, а так же, в случае, если она вам подходит - скачать файл для редактирования или печати.

Презентация содержит 26 слайдов и доступна для скачивания в формате ppt. Размер скачиваемого файла: 453.00 KB

Просмотреть и скачать

Pic.1
IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Ja
IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic JavaScript: Introduction to Scripting
Pic.2
Topics Covered Writing simple JavaScript programs. Using input and output statements Basic memory co
Topics Covered Writing simple JavaScript programs. Using input and output statements Basic memory concepts. Arithmetic operators. Decision-making statements. Relational and equality operators.
Pic.3
Introduction JavaScript scripting language Client-side scripting enhances functionality and appearan
Introduction JavaScript scripting language Client-side scripting enhances functionality and appearance Makes pages more dynamic and interactive Pages can produce immediate response without contacting a server Customization is possible on the basis of users’ explicit and implicit input Browser has to have a built-in (JavaScript) interpreter Foundation for complex server-side scripting
Pic.4
JavaScript: Object-Based Language There are three object categories in JavaScript: Native Objects, H
JavaScript: Object-Based Language There are three object categories in JavaScript: Native Objects, Host Objects, and User-Defined Objects. Native objects: defined by JavaScript. String, Number, Array, Image, Date, Math, etc. Host objects : supplied and always available to JavaScript by the browser environment. window, document, forms, etc. User-defined objects : defined by the author/programmer Initially, we will use host objects created by the browser and their methods and properties
Pic.5
Scripting Two approaches to client side scripting: Inline scripting Written in the <body> sect
Scripting Two approaches to client side scripting: Inline scripting Written in the <body> section of a document JavaScript code embedded in the <head> section
Pic.6
Scripting <script> tag Indicate that the text is part of a script type attribute Specifies the
Scripting <script> tag Indicate that the text is part of a script type attribute Specifies the type of file and the scripting language use: Value: “text/javascript” IE and Netscape use JavaScript as default scripting language writeln method of the document object Write a line in the document and position the cursor in the next line Does not affect the actual rendering of the HTML document What is being written by JavaScript is the set of html instructions that in turn determine the rendering of the html document
Pic.7
welcome. html (1 of 1)
welcome. html (1 of 1)
Pic.8
welcome2. html (1 of 1)
welcome2. html (1 of 1)
Pic.9
welcome3. html 1 of 1
welcome3. html 1 of 1
Pic.10
welcome4. html 1 of 1
welcome4. html 1 of 1
Pic.11
Javascript: introduction to scripting, слайд 11
Pic.12
Common Escape Sequences
Common Escape Sequences
Pic.13
Dynamic Pages A script can adapt the content based on explicit input from the user or other informat
Dynamic Pages A script can adapt the content based on explicit input from the user or other information System clock: Time of day Hidden input Cookies User input can be collected by invoking the prompt method of a window object This will display a dialog box that prompts user for input
Pic.14
welcome5. html (1 of 2)
welcome5. html (1 of 2)
Pic.15
Javascript: introduction to scripting, слайд 15
Pic.16
Javascript: introduction to scripting, слайд 16
Pic.17
Simple Script Example: Adding Integers The values of numbers to be added are obtained as user inputs
Simple Script Example: Adding Integers The values of numbers to be added are obtained as user inputs colleted through the window. prompt method parseInt Converts its string argument to an integer What happens if the conversion is not done? See example on our web site NaN (not a number): value returned if non-numerical values are passed to the paresInt method
Pic.18
Addition. html (1 of 2)
Addition. html (1 of 2)
Pic.19
Addition. html (2 of 2)
Addition. html (2 of 2)
Pic.20
Javascript: introduction to scripting, слайд 20
Pic.21
Arithmetic Operators and order of evaluation
Arithmetic Operators and order of evaluation
Pic.22
Relational (Inequality and Equality) Operators
Relational (Inequality and Equality) Operators
Pic.23
welcome6. html (1 of 3)
welcome6. html (1 of 3)
Pic.24
welcome6. html (2 of 3)
welcome6. html (2 of 3)
Pic.25
welcome6. html (3 of 3)
welcome6. html (3 of 3)
Pic.26
Order of Precedence for the Basic Operators
Order of Precedence for the Basic Operators


Скачать презентацию

Если вам понравился сайт и размещенные на нем материалы, пожалуйста, не забывайте поделиться этой страничкой в социальных сетях и с друзьями! Спасибо!