Introduction to JavaScript

Slides:



Advertisements
Similar presentations
Tables Feb. 14, Tables Great way to organize and display information Laid out in columns and rows Think of an excel spreadsheet Defined with tag.
Advertisements

Cascading Style Sheets (CSS). Cascading Style Sheets With the explosive growth of the World Wide Web, designers and programmers quickly explored and reached.
Emerging technology and Platform#3: JavaScript Bina Ramamurthy.
Part 2 Introduction to CSS. CSS Syntax – class selector 1 With the class selector you can define different styles for the same type of HTML element. You.
1 Lesson 5 Introduction to Cascading Style Sheets HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
INTRODUCTION TO DHTML. TOPICS TO BE DISCUSSED……….  Introduction Introduction  UsesUses  ComponentsComponents  Difference between HTML and DHTMLDifference.
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Chapter 19: Adding JavaScript
Javascript: More features B. Ramamurthy 7/4/2014B. Ramamurthy, CSE651C1.
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Css. Definition Cascading style sheet (CSS) Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
 cascade Style Sheets (CSS) is a mark-up language that was first proposed in 1994 by Håkon Wium Lie. CSS works in conjunction with HTML to greatly increase.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
DHTML. What is it? Dynamic HTML. Not a standard unlike HTML or Java It is a term applied by both Netscape and Microsoft to a collection of technologies.
HTML JAVASCRIPT. CONTENTS Javascript Example NOSCRIPT Tag Advantages Summary Exercise.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
EXTERNAL STYLESHEETS AND MORE HTML STYLING HTML and CSS part 2.
Wes Preston DEV 202. Audience: Info Workers, Dev A deeper dive into use-cases where client-side rendering (CSR) and SharePoint’s JS Link property can.
HTML Elements: Forms and Controls Chapter 9 B. Ramamurthy.
Basic HTML Page 1. First Open Windows Notepad to type your HTML code 2.
CSCI 3100 Tutorial 5 JavaScript & Ajax Jichuan Zeng Department of Computer Science and Engineering The Chinese University of Hong.
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
HTML Structure & syntax
Pertemuan 1 Desain web Pertemuan 1
Introduction to CSS: Selectors
Week-12 (Lecture-1) Cascading Style Sheets (CSS): describe how documents are presented on screens. Types of Style Sheets: External Style Sheet - Define.
JQuery Fundamentals Introduction Tutorial Videos
DHTML.
Web Basics: HTML/CSS/JavaScript What are they?
HTML – The COMPUTING UNLOCKED GUIDE
Concepts of HTML, CSS and Javascript
W3C Web standards and Recommendations
Intro to CSS CS 1150 Fall 2016.
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
The Cliff Notes Version
Highly Engaging and Dynamic Data-driven Visualization with Javascript
Introduction to JavaScript
Intro to CSS CS 1150 Spring 2017.
TOPICS Chrome Dev Tools Process for Building a Static Website
JavaScript Introduction
JavaScript an introduction.
A second look at JavaScript
Your 1st Programming Assignment
Introduction to Web Page Design
JQuery with ASP.NET.
JavaScript: How To? B. Ramamurthy.
Introduction to JavaScript
Introduction to JavaScript
Introduction to JavaScript
Introduction to Cascading Style Sheets (CSS)
Introduction to HTML5.
Training & Development
Javascript and JQuery SRM DSC.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Document Object Model.
Introduction to JavaScript
HTML – The COMPUTING UNLOCKED GUIDE
Pertemuan 1 Desain web Pertemuan 1
Session 3: Basic CSS Spring 2009
Introduction to Web Application Design
Introduction to JavaScript & jQuery
Web Client Side Technologies Raneem Qaddoura
Presentation transcript:

Introduction to JavaScript B. Ramamurthy 4/29/2019

Overview We will begin with simple exercises on HTML (UI)+JS (control/action)+CSS (style) We will focus on separation of the various components. Then we will drop the style (css) and focus on a few popular js libraries such as jquery 4/29/2019

Structure – Style -- Interaction HTML provides structure CSS provides style; CSS provides style attributes for the HTML selector tags Javascript (JS) provides control for interaction and operations JS provides functions that can be called to perform operations 4/29/2019

Exercise with all three components <!DOCTYPE html> <head> <title> My first JavaScript </title> <style> h1{color: blue} </style> </head> <body> <h1> <script> document.write("Hello World!") </script> </h1> </body> </html> Head Style/css Body Script/js 4/29/2019

Separate files for style and scripts <!DOCTYPE html> <head> <title> My first JavaScript </title> </head> <body> <h1> js function outside </h1> </body> </html> Head .css file <style> h1{color: blue} </style> Style/css Body <script src="myscripts.js"></script> .js file function mywrite() {document.write("Hello World!");} 4/29/2019

Moving CSS, JS to an external files We can separate style elements in css file, behavioral elements can be moved to an external js file. This separation of concerns has resulted in explosion of javascript libraries and css style libraries. Large collection of superior and highly useful js libraries are available 4/29/2019

JS functions Javascript “script” consists of functions. A function consists of function followed by the name of the function The statement that make up the function go next within curly brackets Example: function saySomething() { alert(“ We are learning basics of JS”); } 4/29/2019

Putting all together .html file .css file application Web browser Javascript Libraries .html file .css file application Web browser Firefox/ Safari image and audio files .js file interprets displays Style(.css) Libraries Prepare/edit files 4/29/2019

Visualizations Great visualizations are not just informative but initiate conversations, explosion of free social media communications/messaging/instagramming etc. result in valuable free marketing to target customer segment Great visualization tells a story instantly Excel is de facto standard but it is designed as a data entry application and optimized for graphs/plots: not good for unstructured and social media data; look beyond excel tables and graphs Interactive visualization provides new modes of engagement previously impossible Opens up previously invisible aspects of data 4/29/2019

HTML5+DOM No matter what the backend, HTML and JavaScript are the technologies for all web developers for front end. 4/29/2019

Jquery Jquery is an Open Source javascript library that simplifies the interactions between the Document Object Model (DOM) of HTML and Javascript. Plain JS file is made up of functions, whereas Jquery features functions that are responsive the HTML selectors and modifies the DOM/HTML document. 4/29/2019

Jquery Overview Finding HTML elements and invoking operations/functions for them Chaining multiple jquery methods on a set of elements Implicit iteration: keep checking the UI or scan the page and update when changes happen 4/29/2019