Building an App with Jquery and Ajax

Slides:



Advertisements
Similar presentations
Getting Started with jQuery. 1. Introduction to jQuery 2. Selection and DOM manipulation Contents 2.
Advertisements

JavaScript & jQuery JavaScript and jQuery introduction.
The jQuery library. What is jQuery ? A javascript lightweight library Is very easy to use Is powerful Is cross-browser compatible Downloadable from jQuery.com,
JQuery CS 380: Web Programming. What is jQuery? jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling,
JQuery A Javascript Library Hard things made eas(ier) Norman White.
School of Computing and Information Systems CS 371 Web Application Programming jQuery.
Jax Code Camp 2010 Good morning. iPhone Dev How to develop for the iOS 4.
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.
Fundamentals, DOM, Events, AJAX, UI Doncho Minkov Telerik Corporation
Competence Development Introduction to AJAX. What is AJAX? AJAX = Asynchronous JavaScript and XML For creating interactive web applications – Exchanging.
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
Making AJAX Easy with jQuery Chris Renner Health Systems Analyst Programmer & Informatics Manager VUMC Office of Grants & Contracts Management October.
M. Taimoor Khan Courtesy: Norman White.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Ajax (Asynchronous JavaScript and XML). AJAX  Enable asynchronous communication between a web client and a server.  A client is not blocked when an.
Nguyen Ich Cuong.  Course duration: 45’  Purpose: Present Introduction to JQuery  Targeted attendees: NICorp Trainee  Tests/quiz: Yes - 10’
JavaScript & jQuery the missing manual Chapter 11
A really fairly simple guide to: mobile browser-based application development (part 4, JQuery & DOM) Chris Greenhalgh G54UBI / Chris Greenhalgh.
CSS/Photoshop Layouts – Quiz #7 Lecture Code:
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
Modern JavaScript Develop And Design Instructor’s Notes Chapter 13 - Frameworks Modern JavaScript Design And Develop Copyright © 2012 by Larry Ullman.
Client side web programming Introduction Jaana Holvikivi, DSc. School of ICT.
. Taught by: Muhammad Ali Baloch midahot. WHAT IS JQUERY JQuery is a fast, small, and feature-rich JavaScript library. Simplifies the interaction between.
Unleash the Power of jQuery Doncho Minkov Telerik Software Academy academy.telerik.com Senior Technical Trainer
Asynchronous Javascript And XML AJAX : an introduction UFCEUS-20-2 : Web Programming.
Unleash the Power of jQuery Learning & Development Team Telerik Software Academy.
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.
Creating Dynamic Webpages
Ajax for Dynamic Web Development Gregory McChesney.
JavaScript Introduction. Slide 2 Lecture Overview JavaScript background The purpose of JavaScript A first JavaScript example Introduction to getElementById.
AJAX James Kahng. Congrats Jack Guo for Angular entryentry This week’s coding challenge at end of talk.
1 What is JQuery. jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax* interactions.
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.
AJAX in Ruby-on-Rails. Ruby on Rails and AJAX AJAX can be done with just Javascript Easier if you use libraries –Prototype –SAJAX –jQuery Libraries only.
JQuery “write less, do more”. jQuery - Introduction Simply a JavaScript library to simplify JavaScript programming itself Wraps long standard JavaScript.
JQUERY AND AJAX
Javascript AJAX HTML WEB SERVER Asynchronous. Javascript HTML events DOM – document object model browser internal view of html page compute.
The New Face of ASP.NET ASP.NET MVC, Razor, and jQuery Ido Flatow | Senior Architect | Sela | This session is.
.. WHAT IS JQUERY JQuery is a fast, small, and feature-rich JavaScript library. Simplifies the interaction between HTML and JavaScript. The jQuery library.
JQuery, JSON, AJAX. AJAX: Async JavaScript & XML In traditional Web coding, to get information from a database or a file on the server –make an HTML form.
JQuery.
JQuery Fundamentals Introduction Tutorial Videos
Web API - Introduction AJAX, Spring Data REST SoftUni Team Web API
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.
Unleash the Power of jQuery
Intro to jQuery jQuery is a popular, and extensible, JavaScript library Supports … DOM manipulation CSS manipulation HTML event methods Effects & animations.
JQuery Basics 소속 / 작성자 이 문서는 나눔글꼴로 작성되었습니다. 설치하기.
JQUERY Online TRAINING AT GOLOGICA
Fundamentals, DOM, Events, AJAX, UI
AJAX.
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
Asynchronous Javascript And XML
JQuery with ASP.NET.
Web Programming Language
..
Secure Web Programming
Chengyu Sun California State University, Los Angeles
Web-Applications & AJAX
Chengyu Sun California State University, Los Angeles
Chengyu Sun California State University, Los Angeles
Client-Server Model: Requesting a Web Page
Chengyu Sun California State University, Los Angeles
Web Client Side Technologies Raneem Qaddoura
Murach's JavaScript and jQuery (3rd Ed.)
Creating dynamic/interactive web pages
Presentation transcript:

Building an App with Jquery and Ajax Carolyn Schroeder, May 21, 2018

What is jQuery? jQuery is a JavaScript library DOM element selections, traversal and manipulation are enabled by its selector engine jQuery also provides a pattern for event handling that goes beyond basic DOM element selection and manipulation What is jQuery?

jQuery Selectors #Selector Example Selects #id $("#lastname") The element with id="lastname" .class $(".intro") All elements with class="intro" .class,.class $(".intro,.demo") All elements with the class "intro" or "demo" element $("p") All <p> elements el1,el2,el3 $("h1,div,p") All <h1>, <div> and <p> elements parent > child $("div > p") All <p> elements that are a direct child of a <div> element jQuery Selectors

jQuery Traversing $("div").children(); var imageId = $(this).siblings("input.imageId:hidden").val(); var dTime = $(this).find('input[type="hidden"]').val(); jQuery Traversing

Each $('input.sel:checkbox:checked') .each(function() { var row = $(this).parent().parent(); var hidden = row.find('input[type="hidden"]'); var publicationId = hidden.val(); publicationIds.push(publicationId); }); Each

The ready event occurs when the DOM (document object model) has been loaded. Because this event occurs after the document is ready, it is a good place to have jQuery functions $(function () { … }); jQuery Ready

Jquery Events $("#btnSubmit") .click(function(e) { SendData(); }); $("#datepicker").change(function () { SetDateTimes(); Jquery Events

An Ajax call is an asynchronous request initiated by the browser that does not directly result in a page transition. Ajax Call

Client side call $.ajax({ dataType: "json", data: { userid: $("#userId").val(), imageid: imageId }, url: "/Gallery/AddLike", success: function (data) { window.location.href = "/Gallery/Index"; } }); Client side call

Handling ajax Server Side public JsonResult AddLike(string userId, Guid imageId) { var userLike = new UserLike Id = userId, ImageId = imageId }; _context.UserLikes.Add(userLike); _context.SaveChanges(); return Json(new { Message = string.Empty }, JsonRequestBehavior.AllowGet); } Handling ajax Server Side

Resources PowerPoint slides are on http://schroederconsultingllc.com/ Project code https://github.com/carolynlschroeder//j QueryAjaxDemo Resources