Writing JavaScript Code

Slides:



Advertisements
Similar presentations
JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Advertisements

PHP I.
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Microsoft Expression Web-Illustrated Unit J: Creating Forms.
HTML.
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
M2 – Explain the tools and techniques used in the creation of an interactive website. By Arturas Vitkovskij.
Html: getting started HTML is hyper text markup language. It is what web browsers look at on the Internet. HTML documents should be created in a simple.
Lesson 1 Quick HTML Know-How. A little HTML History In 1990 Tim Berners-Lee invented: World Wide Web HTML (hypertext markup language) HTTP (HyperText.
How To Create A Web Page By: Mikeon Briddy & Darrius Jacobs April 10,2006 Mr. Barnett.
TEA/TUG + ALDOT(Mobile) = H(O+I) The TEA/TUG being hosted by ALDOT in Mobile causes Hurricanes to come to Alabama. The TEA/TUG being hosted by ALDOT in.
Inline, Internal, and External FIle
How can basic HTML sites be improved?. The Difference Between Hyper Text Markup Language Is a markup language for describing web pages Is used to create.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
Mr C Johnston ICT Teacher BTEC IT Unit 06 - Lesson 02 Types of Programming Language.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Welcome Welcome to the tour of this tracking system website! This “General” tour is for everyone! The next tour is for church planters and the last tour.
Server-side Scripting Powering the webs favourite services.
Web Technologies Website Development Trade & Industrial Education
Web Design Unit Assignment #2: Job Skills Favorite Links Page You will create a HTML web page with links to informational websites about a variety of job.
INTERMEDIATE WEB DESIGN INTRODUCTORY CSS, JAVASCRIPT AND PHP.
CURR 285, FirstName LastName, This_Semester This_Year FirstName LastName About Me [A] [My Own Choice Of Topic] [B] Favorite Educational Web Site [C] My.
Linking Images to Other Areas within a Blackboard Course Darek Sady.
Intro to Dreamweaver Web Design Section 7-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
Title, meta, link, script.  The title looks like:  The tag defines the title of the document in the browser toolbar.  It also: ◦ Provides a title for.
NARFE Configuration Advisory Board (CAB) Web Page.
JMD2144 – Lesson 4 Web Design & New Media.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Scripting Language A scripting language or script language is a programming language that supports the writing of scripts. The term script is typically.
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
Tables Web Authoring. This kind of a table THISIs aTABLE THISIs aTABLE THISIs aTABLE THISIs aTABLE.
HTML.
COS 125 Goran Nagradic. About Ziher EX  Ziher EX is a website built for e-commerce business.  Ziher EX was built in Dreamweaver using simple elements.
Student Pages
HTML Overview Part 5 – JavaScript 1. Scripts 2  Scripts are used to add dynamic content to a web page.  Scripts consist of a list of commands that execute.
Review of HTML and CSS A (very) brief review of some key fundamentals to be aware of in IT-238.
Welcome Welcome to the tour of this tracking system website! This “General” tour is for everyone! The next tour is for church starters and the last tour.
This shows CIS17 and the first day introduction..
Getting Started with HTML. HTML  Hyper Text Markup Language  HTML isn’t a program language, its known as a markup language  A Markup language has tags.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
JQUERY AND AJAX
Group 9: Through examples, explain how to build a css navigation bar. Presented by: Daniel Ku, Matt Iannacci & Iphia Henry.
XML DOM Week 11 Web site:
WEB DESIGN CONCEPTS Brayden Burr. UNDERSTANDING THE CONTENT.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Revised June 2008 Online PD Basic HTML1 Let’s Try It!  Open Notepad oStart > All Programs > Accessories > Notepad oDon’t get WordPad by mistake – won’t.
JavaScript Part 1 Introduction to scripting The ‘alert’ function.
Let’s Try It! Open Notepad
Web Design Languages HTML CSS JavaScript
Introduction to HTML:.
HTML5 Basics.
FOP: JavaScript Arrays(Lists)
Intro to Dreamweaver Web Design Section 8-1
Uppingham Community College
Key concepts of Computing
JavaScript Introduction
Lesson 4 – Introduction to CSS
Unit 6 part 3 Test Javascript Test.
Array?.
HTML Links.
BUILDING A WEBSITE 7.4.2: Basics of HTML and CSS.
HTML Structure.
That detail is only sort of important That detail is only sort of important. What is important is that you have all of these HTML elements floating.
Document Structure & HTML
JavaScript is a scripting language designed for Web pages by Netscape.
Welcome to the tour of this information system website!
Web Programming and Design
Introduction to scripting
Presentation transcript:

Writing JavaScript Code Mr Peake 22 September 2016

Writing JavaScript code The State of the Art By now, most of you have: Explained how you ran the sample program Performed a tag by tag breakdown of the sample program in the style requested IF YOU HAVE NOT FINISHED: Please see me during this lesson and we can arrange a time for a catch-up session to help complete your work. 22/09/2016 Writing JavaScript code

Writing JavaScript code Moving on You now need to plan, implement, test and demonstrate some JavaScript code of your own. This isn’t actually too hard at all, and the first script, Task 2, will be straightforward for all of you to complete. The research methods using W3Schools.com are about to pay off. 22/09/2016 Writing JavaScript code

Writing JavaScript code Here’s the brief As is the case with most programming languages, in JavaScript you can use arrays in order to store multiple values under the same identifier. For example, an array of products can be set up as below for use on an ecommerce web site: var products = ["Printer","Tablet","Router"]; (i) Set up an array to include the items shown above, plus a few extras of your choice. (ii) Write a script that: • outputs the items in alphabetical order • counts the number of items in the array. In each case, plan, implement, test and demonstrate the scripts. 22/09/2016 Writing JavaScript code

Let’s take a look at JavaScript arrays W3schools is really useful here: You are strongly advised to go to the JavaScript array reference using the REFERENCES link at top right of the screen. 22/09/2016 Writing JavaScript code

Looking at the array’s Methods: You will find there is a sort method. 22/09/2016 Writing JavaScript code

Now let’s look at the sort Method Read and document the sort method, and look at the Try It yourself code. This gives you the scope to see working code which you can then modify and test. 22/09/2016 Writing JavaScript code

Try It yourself – given code 22/09/2016 Writing JavaScript code

Try It yourself – modified code 22/09/2016 Writing JavaScript code

And full screen before… 22/09/2016 Writing JavaScript code

Writing JavaScript code … and after. 22/09/2016 Writing JavaScript code

Before we write this up… Research arrays, sort and whatever Property or Method with count the elements in the array. This is all available through the array reference on W3schools. If you want to get ahead, you should add your research into arrays into your 452 document after starting a new section called Task 2. Experiment with arrays by Putting the required values into an array (including extra ones) Output in alphabetical order Count the elements in the array. BE SURE TO KEEP A COPY OF YOUR CODE IN A NEW HTML DOCUMENT. 22/09/2016 Writing JavaScript code