Web Client Side Technologies Raneem Qaddoura

Slides:



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

CS 299 – Web Programming and Design Overview of JavaScript and DOM Instructor: Dr. Fang (Daisy) Tang.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
DOM and JavaScript Aryo Pinandito.
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 AND DOM Internet Engineering Spring 2012.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 7.
. Taught by: Muhammad Ali Baloch midahot. WHAT IS JQUERY JQuery is a fast, small, and feature-rich JavaScript library. Simplifies the interaction between.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
HTML JAVASCRIPT. CONTENTS Javascript Example NOSCRIPT Tag Advantages Summary Exercise.
JavaScript Overview Developer Essentials How to Code Language Constructs The DOM concept- API, (use W3C model) Objects –properties Methods Events Applications;
Unit 13 –JQuery Basics 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.
Web Technologies Lecture 8 JQuery. “A fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Flux & React Web Application Development Mark Repka, Rich McNeary, Steve Mueller.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
National College of Science & Information Technology.
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
JQuery is a fast, small, and feature-rich javascript library. It makes things like HTML document traversal and manipulation, event handling, animation,
Working with Cascading Style Sheets
JQuery Fundamentals Introduction Tutorial Videos
Introduction to.
DHTML.
Module 1 Introduction to JavaScript
Web Basics: HTML/CSS/JavaScript What are they?
Objective % Select and utilize tools to design and develop websites.
Javascript and Dynamic Web Pages: Client Side Processing
Programming Web Pages with JavaScript
Unit M Programming Web Pages with
ITM352 PHP and Dynamic Web Pages: Server Side Processing 1.
Kendo UI Builder Bob Brennan
Social Media And Global Computing Managing MVC With jQuery and AJAX
Lecture 11. Web Standards Continued
Intro to JavaScript CS 1150 Spring 2017.
Introduction to Web programming
Section 17.1 Section 17.2 Add an audio file using HTML
JavaScript Functions.
Application with Cross-Platform GUI
Haritha Dasari Josue Balandrano Coronel -
Objective % Select and utilize tools to design and develop websites.
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
The Cliff Notes Version
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Introduction to JavaScript
Displaying Form Validation Info
JavaScript Introduction
JavaScript an introduction.
A second look at JavaScript
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
JQuery with ASP.NET.
Introduction to Programming the WWW I
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
..
Javascript and JQuery SRM DSC.
E-commerce Applications Development
Introduction to DHTML, the DOM, JS review
Introduction to JavaScript
JavaScript CS 4640 Programming Languages for Web Applications
Tutorial 10: Programming with javascript
Web Client Side Technologies Raneem Qaddoura
Introduction to JavaScript & jQuery
Web Client Side Technologies Raneem Qaddoura
Creating dynamic/interactive web pages
Lab 1: D3 Setup John Fallon
Introduction to Web programming
JavaScript CS 4640 Programming Languages for Web Applications
Presentation transcript:

Web Client Side Technologies 0780341 Raneem Qaddoura

Why Study JavaScript? JavaScript is the programming language of HTML and the Web. JavaScript is easy to learn. Make actions in the user's browser without sending messages back and forth to the server. JavaScript also allows your page to be interactive. Provide responses within the Web page to various actions that your visitor takes so as to avoid the need to load new Web pages to respond (AJAX). Considering the performance, JavaScript is fast and Reliable.

Review Where to put JavaScript? Scripts can be placed in the <body>, or in the <head> section of an HTML page, or in both. Note: Placing scripts at the bottom of the <body> element improves the display speed, because script interpretation slows down the display. External JavaScript <script> document.getElementById("demo").innerHTML = "My First JavaScript"; </script> <script src="myScript.js"></script>

Review JavaScript Can Change HTML Content JavaScript Can Change HTML Attribute Values JavaScript Can Change HTML Styles (CSS) JavaScript Can Show / Hide HTML Elements Example document.getElementById("demo").innerHTML = "Hello JavaScript"; document.getElementById("demo").src='pic_bulbon.gif' document.getElementById("demo").style.fontSize = "25px"; document.getElementById("demo").style.display = "none"; document.getElementById("demo").style.display = “block"; document.getElementById("demo").style.display = “inline-block"; document.getElementById("demo").style.display = “inline";

JS HTML DOM The HTML DOM (Document Object Model)

DOM Document Finding HTML Elements By Id: Example 1 By Tag name: Example 2 By Class name: Example 3 By CSS Selector: Example 4 Method Description document.getElementById(id) Find an element by element id document.getElementsByTagName(name) Find elements by tag name document.getElementsByClassName(name) Find elements by class name

DOM Document Changing HTML Elements Property Description element.innerHTML =  new html content Change the inner HTML of an element element.attribute = new value Change the attribute value of an HTML element element.style.property = new style Change the style of an HTML element Method element.setAttribute(attribute, value)

DOM Document Adding and Deleting Elements Create Element, Append Child: Example 1 Remove Child: Example 2 Replace Child: Example 3 Write: Example 4 Method Description document.createElement(element) Create an HTML element document.removeChild(element) Remove an HTML element document.appendChild(element) Add an HTML element document.replaceChild(new, old) Replace an HTML element document.write(text) Write into the HTML output stream

Javascript Essentials Variables Data types Arithmetic Functions Objects Date Conditions Loop For Forms Events Cookies

JS Libraries What is a Software library? A software library is a collection of files, programs, routines, scripts, or functions that can be referenced in the programming, scripting, or markup languages. What is a JS library? A JavaScript library is a library of pre-written JavaScript which allows for easier development of JavaScript-based applications, especially for AJAX and other web-centric technologies

JS Libraries List of notable JS libraries jQuery: jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. D3.js: The Data Driven Documents, or D3.js, library is unique in that it puts the data first.  Parsley: Parsley provides more form-validation techniques than just about any other JavaScript library.  Qunit: QUnit is one of several unit-testing libraries available for JavaScript.

JS Framework What is a Software Framework? A software framework is an abstraction in which software providing generic functionality can be selectively changed by additional user-written code, thus providing application-specific software. Software frameworks may include support programs, compilers, code libraries, tool sets, and application programming interfaces (APIs) that bring together all the different components to enable development of a project or system. What is a JS Framework? A JavaScript framework is an application framework written in JavaScript. It differs from a JavaScript library in its control flow: a library offers functions to be called by its parent code, whereas a framework defines the entire application design. Some JavaScript frameworks follow the model–view–controller paradigm designed to segregate a web application into orthogonal units to improve code quality and maintainability.

JS Frameworks List of notable JS Frameworks AngularJS: Extends HTML by acting as the controller portion of MVC. Angular makes it possible to create new behaviors in a manner that is both natural and straightforward. Vue.js: A versatile open-source JavaScript framework, Vue uses a “component-based development model” that lets you mix and match Vue components into your projects. Ember.js: Employs the Model-View-View-Model (MVVM) pattern and incorporates best practices as part of the framework. Best of all, it scales really well. React: Provides the view portion in the context of the Model-View- Controller (MVC) approach. It doesn’t assume anything about the underlying technology stack that you’re using to model or control the data. All React is interested in is displaying the data on screen.

Difference between a framework and a library A library is essentially a set of functions that you can call. Each call does some work and returns control to the client. A framework embodies some abstract design, with more behavior built in. In order to use it you need to insert your behavior into various places in the framework either by sub classing or by plugging in your own classes. The framework's code then calls your code at these points. Relation: Both of them defined API, which is used for programmers to use. To put those together, we can think of a library as a certain function of an application, a framework as the skeleton of the application, and an API is connector to put those together. A typical development process normally starts with a framework, and fill out functions defined in libraries through API.

JS Library VS JS Framework JS Framework differs from a JavaScript library in its control flow: a library offers functions to be called by its parent code, whereas a framework defines the entire application design. A developer does not call a framework; instead it is the framework that will call and use the code in some particular way.

References https://www.w3schools.com/ Sharma, P. (2013). Introduction to Web Technology. SK Kataria and Sons. Peterson, C. (2014). Learning responsive web design: a beginner's guide. " O'Reilly Media, Inc.".