MTA EXAM 98-375 HTML5 Application Development Fundamentals.

Slides:



Advertisements
Similar presentations
1 Storage Duration and Scope –Local and global variables Storage classes –automatic, static, external, register Todays Material.
Advertisements

Introducing JavaScript
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 4 Client Side Scripting JavaScript Looping.
Javascript Introduction Norman White Material is from w3schools.com Go there to run examples interactively.
The Web Warrior Guide to Web Design Technologies
JavaScript CMPT 281. Outline Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages.
Using Data Active Server Pages Objectives In this chapter, you will: Learn about variables and constants Explore application and session variables Learn.
HTML5 Application Development Fundamentals
Review and Practice for Final exam. Final exam Date: December 20, 3:15 – 5:15pm Format: Two parts: First part: multiple-choice questions (15 questions.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
UNIT 3 DYNAMIC WEBSITES WITH CSS AND JAVASCRIPT. OBJECTIVES  CO4 Apply style to a website using CSS.  CO5 Describe the use of scripting when creating.
Introduction to JavaScript 11 Introduction to Programming the WWW I CMSC Winter 2004 Lecture 14.
CISC474 - JavaScript 03/02/2011. Some Background… Great JavaScript Guides: –
CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad GM-IT CIIT Islamabad CIIT Virtual Campus, CIIT COMSATS Institute.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Tutorial 2 Variables and Objects. Working with Variables and Objects Variables (or identifiers) –Values stored in computer memory locations –Value can.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 3 Simple.
1 JavaScript in Context. Server-Side Programming.
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
Tutorial 8 Programming with ActionScript 3.0. XP Objectives Review the basics of ActionScript programming Compare ActionScript 2.0 and ActionScript 3.0.
WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: Variables, Functions and Events (there is an audio component to this eLesson) © Dr.
JavaScript Syntax and Semantics. Slide 2 Lecture Overview Core JavaScript Syntax (I will not review every nuance of the language)
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
CS346 Javascript -3 Module 3 JavaScript Variables.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
MTA EXAM HTML5 Application Development Fundamentals.
1 JavaScript
JavaScript Syntax, how to use it in a HTML document
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.
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
JavaScript. JavaScript is the programming language of HTML and the Web. Easy to learn One of the 3 languages of all developers MUST learn: 1. HTML to.
JavaScript Introduction. Slide 2 Lecture Overview JavaScript background The purpose of JavaScript A first JavaScript example Introduction to getElementById.
IS2802 Introduction to Multimedia Applications for Business Lecture 3: JavaScript and Functions Rob Gleasure
1 JavaScript in Context. Server-Side Programming.
Java Script About Java Script Document Object Model Incorporating JavaScript Adding JavaScript to HTML Embedding a Javascript External Scripts Javascript.
Unit 10-JavaScript Functions Instructor: Brent Presley.
Javascript Overview. What is Javascript? May be one of the most popular programming languages ever Runs in the browser, not on the server All modern browsers.
MTA EXAM HTML5 Application Development Fundamentals.
JavaScript. JavaScript Introduction JavaScript is the world's most popular programming language. It is the language for HTML and the web, for servers,
Understanding JavaScript and Coding Essentials Lesson 8.
MTA EXAM HTML5 Application Development Fundamentals.
PHP Reusing Code and Writing Functions 1. Function = a self-contained module of code that: Declares a calling interface – prototype! Performs some task.
Project 4: Working with Variables Essentials for Design JavaScript Level One Michael Brooks.
AMPscript Overview Fundamental Concepts for Using AMPscript in HTML with ExactTarget.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
JavaScript and Ajax Week 10 Web site:
4.1. Manage and maintain JavaScript Update the UI by using JavaScript. Understanding JavaScript and Coding Essentials.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
ITM 3521 ITM 352 Functions. ITM 3522 Functions  A function is a named block of code (i.e. within {}'s) that performs a specific set of statements  It.
REEM ALMOTIRI Information Technology Department Majmaah University.
JAVA Script : Functions Ashima Wadhwa
JavaScript Syntax and Semantics
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
JavaScript.
JavaScript Introduction
Microsoft Visual Basic 2005 BASICS
Chapter 3 Simple Functions
T. Jumana Abu Shmais – AOU - Riyadh
JavaScript What is JavaScript? What can JavaScript do?
Anatomy of a Java Program
JavaScript What is JavaScript? What can JavaScript do?
JavaScript CS 4640 Programming Languages for Web Applications
Tutorial 10: Programming with javascript
Web Programming and Design
ITM 352 Functions.
JavaScript CS 4640 Programming Languages for Web Applications
Murach's JavaScript and jQuery (3rd Ed.)
Presentation transcript:

MTA EXAM HTML5 Application Development Fundamentals

98-375: OBJECTIVE 4 Code by Using JavaScript

Manage and maintain JavaScript LESSON 4.1

In this lesson, you will review the following: Variable naming and techniques to avoid naming collisions within a global scoped environment. Creating and using functions. Using Windows ® Library for JavaScript, jQuery, and other third-party libraries. OVERVIEW Lesson 4.1

What is the difference between a global and a local variable? How can you avoid problems if a browser does not support JavaScript? What is the purpose of using Windows Library or jQuery for JavaScript in your website? GUIDING QUESTIONS Lesson 4.1

LECTURE Lesson 4.1 Variable Naming and Techniques Avoid naming collisions within a global scoped environment. Global variable names should start with an underscore, cannot contain spaces, and are case sensitive, ie: _globalVariable=6; A variable is declared with the keyword var followed by the variable name. Example: var lastName; This is a local variable; therefore, it starts with a lowercase letter. Variable names cannot be the same as any reserved words, such as var, int, if, else. Give unique names to variables, especially when your program includes methods from outside your code such as jQuery.

LECTURE Lesson 4.1 Creating and Using Functions To create a function (a block of code designed to perform a certain action), you must give the function a name. Functions allow more control over when the code is executed. Events can be used to trigger a function to execute. Functions can receive values by enclosing them in the parenthesis, and they can also return values, such as the result of a calculation. To call a function, specify the function name and any required values in parenthesis.

LECTURE Lesson 4.1 Using Windows Library for JavaScript, jQuery, and Other Third-Party Libraries JavaScript has several built-in functions. Windows Library, jQuery, and other third-party libraries provide other common objects, functions, and properties that can be used in your JavaScript program. This is also known as an API.

DEMONSTRATION Lesson 4.1 Writing a JavaScript Function In this demonstration, you will see how adding JavaScript to a page can make the page dynamic and interactive.

DISCUSSION Lesson 4.1 What are the benefits of saving JavaScript in an external file?

IN-CLASS ACTIVITY Lesson 4.1 Directions: Read the scenario in the In-class Activity. Create an HTML5 page with JavaScript and test it in a browser.

REVIEW Lesson 4.1 Can you answer these? What is the difference between a global and a local variable? How can you avoid problems if a browser does not support JavaScript? What is the purpose of using Windows Library or jQuery for JavaScript in your website?

ADDITIONAL RESOURCES Lesson 4.1 MSDN Resources JavaScript Fundamentalshttp://msdn.microsoft.com/en- us/library/6974wx4d(v=VS.94).aspx JavaScript Referencehttp://msdn.microsoft.com/en- us/library/yek4tbz0(v=VS.94).aspx Windows Library for JavaScript Reference us/library/windows/apps/br aspx Other Resources jQuery Documentationhttp://docs.jquery.com/Main_Page W3 Schools JavaScript Tutorial