Modern JavaScript Develop And Design Instructor’s Notes Chapter 13 - Frameworks Modern JavaScript Design And Develop Copyright © 2012 by Larry Ullman.

Slides:



Advertisements
Similar presentations
CIS 4004: Web Based Information Technology Spring 2013
Advertisements

JQuery CS 380: Web Programming. What is jQuery? jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling,
Modern JavaScript Develop And Design Instructor’s Notes Chapter 11– Ajax Modern JavaScript Design And Develop Copyright © 2012 by Larry Ullman.
Cloud Computing Lecture #7 Introduction to Ajax Jimmy Lin The iSchool University of Maryland Wednesday, October 15, 2008 This work is licensed under a.
AJAX (Asynchronous JavaScript and XML) Amit Jain CS 590 – Winter 2008.
JQuery. What is jQuery? jQuery is a fast, small, and feature-rich JavaScript library that simplifies HTML document traversing and manipulation event handling.
Philly.NET Hands-On jQuery + Plug-ins Bill Wolff, Rob Keiser.
Modern JavaScript Develop And Design Instructor’s Notes Chapter 2- JavaScript in Action Modern JavaScript Design And Develop Copyright © 2012 by Larry.
Fundamentals, DOM, Events, AJAX, UI Doncho Minkov Telerik Corporation
About me I attend the Edina chapter of TechMasters Been a programmer since age 13, sparked by playing video games Currently employed at GMAC as an independent.
Definition from Wikipedia.  The Prototype JavaScript Framework  implemented as a single file of JavaScript code  named prototype.js (
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
PhpXperts What is jQuery Javascript Library Fast and concise Simplifies the interaction between HTML and JavaScript.
Nguyen Ich Cuong.  Course duration: 45’  Purpose: Present Introduction to JQuery  Targeted attendees: NICorp Trainee  Tests/quiz: Yes - 10’
Jquery IS JQuery Jquery Example of mouseover event that shows a submenu when menu selected: $(‘#menu’).mouseover(function() { $(‘#submenu’).show();
By Jon Marozick.  JavaScript toolkit  Aims to change the way developers think  jQuery philosophy  Find some HTML  Do something to it.
JQuery 10/21. Today jQuery Some cool tools around the web JavaScript Libraries Drawing libraries HTML Frameworks Conventions.
A really fairly simple guide to: mobile browser-based application development (part 4, JQuery & DOM) Chris Greenhalgh G54UBI / Chris Greenhalgh.
Modern JavaScript Develop And Design Instructor’s Notes Chapter 10 – Working with Forms Modern JavaScript Design And Develop Copyright © 2012 by Larry.
By: Toms Linnes Mrunal Patel.  Universal  With qooxdoo you build rich, interactive applications, native-like apps for mobile devices light weight single.
Interacting with a Web Page using JavaScript Mat Kelly GTAI Presentation January 10, 2014.
Integrating JavaScript and HTML5 HTML5 & CSS 7 th Edition.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 16 Introduction to Ajax.
Javascript II DOM & JSON. In an effort to create increasingly interactive experiences on the web, programmers wanted access to the functionality of browsers.
JQuery Fairway Code Brew. Agenda What is jQuery? No, really, what is it? Show me something cool Why should I use it? Disturbing photo More features FlexBox.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. JD Edwards Summit Really Cool Demo Stuff – 2015 Edition!!!!! For demo content, please.
Modern JavaScript Develop And Design Instructor’s Notes Chapter 1 - (Re) Introducing JavaScript Modern JavaScript Design And Develop Copyright © 2012 by.
JQuery Youn-Hee Han
Saving Form Data You can save form data in Google Spreadsheets using the following steps. 1.Create a Google Spreadsheet in your documents 2.Use Tools to.
. Taught by: Muhammad Ali Baloch midahot. WHAT IS JQUERY JQuery is a fast, small, and feature-rich JavaScript library. Simplifies the interaction between.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
Unleash the Power of jQuery Doncho Minkov Telerik Software Academy academy.telerik.com Senior Technical Trainer
JQuery Introduction © Copyright 2014, Fred McClurg All Rights Reserved.
Asynchronous Javascript And XML AJAX : an introduction UFCEUS-20-2 : Web Programming.
JavaScript Library. What is jQuery jQuery is a lightweight JavaScript library. The purpose is to make it easier to use JavaScript code on your website.
Unleash the Power of jQuery Learning & Development Team Telerik Software Academy.
Review of the DOM Node properties and methods Some ways of accessing nodes Appending, copying and removing nodes Event handling – Inline – Scripting –
JQuery JavaScript is a powerful language but it is not always easy to work with. jQuery is a JavaScript library that helps with: – HTML document traversal.
Modern JavaScript Develop And Design Instructor’s Notes Chapter 12 – Error Management Modern JavaScript Design And Develop Copyright © 2012 by Larry Ullman.
AJAX James Kahng. Congrats Jack Guo for Angular entryentry This week’s coding challenge at end of talk.
Welcome to jQuery jQuery is one of many available libraries that – Provide functions for manipulating the web page With fairly good performance – Help.
AJAX Asynchronous JavaScript and XML 1. AJAX Outline What is AJAX? Benefits Real world examples How it works 2.
Unit 13 –JQuery Basics Instructor: Brent Presley.
Web Technologies Lecture 8 JQuery. “A fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax.
Chapter 15 Introducing jQuery Part 1. What is JavaScript? A programming language to add dynamic features to a web page. Client side.
Modern JavaScript Develop And Design Instructor’s Notes Chapter 8 – Event Handling Modern JavaScript Design And Develop Copyright © 2012 by Larry Ullman.
JQUERY AND AJAX
XML DOM Week 11 Web site:
Agenda 1)Modern web standards overview 2)JavaScript library overview 3)Building a Single Page Application SPA.
Using jQuery Dr. Charles Severance
HTML Introduction HTML Editors HTML Basic HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Formatting HTML Links HTML Head HTML CSS HTML.
.. WHAT IS JQUERY JQuery is a fast, small, and feature-rich JavaScript library. Simplifies the interaction between HTML and JavaScript. The jQuery library.
Open Solutions for a Changing World™ Eddy Kleinjan Copyright 2005, Data Access WordwideNew Techniques for Building Web Applications June 6-9, 2005 Key.
Shaun Geisert Matt Trice. What is jQuery?  Open source Javascript library/framework Created by John Resig  Their tagline – “The Write Less, Do More.
YUI for your hacks Subramanyan Murali Web Developer, Hacker, Photographer Yahoo! Content Engineering.
12/04/12 JQuery I took these slides from the site because they were pretty good looking. Instructions for editing school and department titles: Select.
Tek Raj Chhetri Code for Humans not for machine.
JQuery.
Haritha Dasari Josue Balandrano Coronel -
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
..
HTML5 Course Review Master a Skill / Learn for Life.
Modern JavaScript Develop And Design
Chengyu Sun California State University, Los Angeles
Front End Development workshop
Chengyu Sun California State University, Los Angeles
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
© 2017, Mike Murach & Associates, Inc.
Presentation transcript:

Modern JavaScript Develop And Design Instructor’s Notes Chapter 13 - Frameworks Modern JavaScript Design And Develop Copyright © 2012 by Larry Ullman

Objectives Explain what a framework is Decide when it’s appropriate to use a framework Identify what qualities to look for in choosing a framework Integrate jQuery or YUI into an HTML page

More Objectives Select and manipulate elements in jQuery or YUI Perform DOM manipulation using jQuery or YUI Handle events in jQuery or YUI Perform Ajax requests in jQuery or YUI Use different plug-ins with jQuery or YUI

Framework Pros and Cons Pros Faster development Better code testing Improved cross-browser reliability Cons Time to learn Code bloat Debugging can be harder Advanced, custom situations can be really hard to implement

Choosing a Framework Browser support License Good documentation/community Extensibility/viability “Feel right”

Incorporating jQuery

Using jQuery $(function() { // Do whatever. }); $(document).ready(function() { // Do whatever. }

Selecting Elements Use $() function #something selects the element with an id value of something.something selects every element with a class value of something something selects every element of something type $('#something')

Manipulating Elements $('#submitButtonId').attr('disabled', 'disabled'); $('#blockquoteID').addClass('emphasis'); $('p').removeClass('emphasis'); var comments = $('#comments'); // Get a reference. var count = comments.val().length; if (count > 100) { // Update the value: comments.val(comments.val().slice(0,100)); }

DOM Manipulation after() append() before() prepend() remove() $('#actualFormId').before(' This is the paragraph. ');

Event Handling selection.eventType(function); $('img').mouseover(function() { // Do this! }); $('#someSelect').change(function() { alert(this.val()); });

Ajax var options = { url: ' type: 'get', data: /* actual data */, dataType: 'text', success: function(response) { // Use response. } }; $.ajax(options);

Using Plug-ins $('#dateInput').datepicker();

Incorporating YUI

Using YUI YUI().use('module1', 'module2', function(Y) { // Do stuff here. }); YUI().use('module1', 'module2', function(Y) { Y.on('domready', function() { // Do DOM stuff here. });

Selecting Elements YUI().use('node', function(Y) { // Do stuff here. }); var header = Y.one('#header'); // Element with an id of 'header'. var links = Y.all('a'); // All link elements. var errors = Y.all('.error');; // All elements with a class of error.

Manipulating Elements var = Y.one('# '); .get('value'); // Value entered into the input. Y.one('#submit').set('disabled', 'disabled'); Y.one('someP').setContent('New text.'); Y.one('# P').addClass('error');

DOM Manipulation create() prepend() insert() remove() var p = Y.Node.create(' '); Y.one('#someDiv').prepend(p);

Event Handling Y.one('#theForm').on('submit', handleForm); Y.all('a').on('click', handleClick); Y.all('a').on('click', function(e) { // e.target.href is always usable! });

Ajax Y.io('somepage.php', { method: 'get', data: /* actual data */, on: { success: function(id, response) { // Use response.responseText or response.responseHTML. } });