Web Programming JAvaScript Ajax Programming Web Programming 05 - 1/38.

Slides:



Advertisements
Similar presentations
JQUERY/AJAX ALIREZA KHATAMIAN DELARAM YAZDANSEPAS.
Advertisements

AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
Introduction to Ajax Professor Stephen K. Kwan MIS, College of Business San José State University Asynchronous.
CS428 Web Engineering Lecture 15 Introduction to Jquery.
Philly.NET Hands-On jQuery + Plug-ins Bill Wolff, Rob Keiser.
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.
Lecture 12 – AJAX SFDV3011 – Advanced Web Development Reference: 1.
AJAX and Java ISYS 350. AJAX Asynchronous JavaScript and XML: – Related technologies: JavaScript, Document Object Model, XML, server-side script such.
1 rfXcel Confidential Copyright 2007 Web Technology JavaScript 12/10/07.
06/10/2015AJAX 1. 2 Introduction All material from AJAX – what is it? Traditional web pages and operation Examples of AJAX use Creating.
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
Ajax - 1h. AJAX IS: A browser technology A technology that uses only JavaScript in the browser page A very efficient way of updating information A way.
Jquery Nasrullah. Jquery jQuery is a JavaScript Library. jQuery greatly simplifies JavaScript programming. jQuery is easy to learn.
Animation & Effects Using JQuery. What is jQuery? jQuery is a lightweight, JavaScript library. The purpose of jQuery is to make it much easier to use.
CHAPTER 5 jQuery อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
AJAX محمد احمدی نیا 2 Of 27 What is AJAX?  AJAX = Asynchronous JavaScript and XML.  AJAX is not a new programming language, but.
Asynchronous Javascript And XML AJAX : an introduction UFCEUS-20-2 : Web Programming.
Web Technology Introduction AJAXAJAX. AJAX Outline  What is AJAX?  Benefits  Real world examples  How it works  Code review  Samples.
School of Computing and Information Systems CS 371 Web Application Programming AJAX.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
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.
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.
AJAX Asynchronous JavaScript & XML A short introduction.
Web Programming Language Week 9 Dr. Ken Cosh Introducing jQuery.
Creating Dynamic Webpages
SYST Web Technologies SYST Web Technologies AJAX.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
AJAX Asynchronous JavaScript and XML 1. AJAX Outline What is AJAX? Benefits Real world examples How it works 2.
JQuery and AJAX WEB Technologies : PHP Programming Language.
CHAPTER 13 COMMUNICATING WITH AJAX. LEARNING OBJECTIVES AJAX, which stands for Asynchronous JavaScript and XMLprovides a way for a browser to send and.
AJAX and REST. Slide 2 What is AJAX? It’s an acronym for Asynchronous JavaScript and XML Although requests need not be asynchronous It’s not really a.
Dave Salinas. What is XML? XML stands for eXtensible Markup Language Markup language, like HTML HTML was designed to display data, whereas XML was designed.
AJAX AJAX Asynchronous JavaScript and XML --- MADHAVI
What is AJAX ? Asynchronous Javascript and XML. Not a stand-alone language or technology. It is a technique that combines a set of known technologies in.
AJAX – Asynchronous JavaScript And XML By Kranthi Kiran Nuthi CIS 764 Kansas State University.
Introduction to JQuery COGS 187A – Fall JQuery jQuery is a JavaScript library, and allows us to manipulate HTML and CSS after the page has been.
KAPITA SELEKTA INFORMATIKA Lasmedi Afuan, ST.M.Cs.
By Ishaq Shinwari.   jquery   $(document).ready(function(){  $("p").hide();  $("h1").click(function(){  $(this).next().slideToggle(300);  });
Javascript AJAX HTML WEB SERVER Asynchronous. Javascript HTML events DOM – document object model browser internal view of html page compute.
JavaScript and Ajax Week 10 Web site:
JQuery Tutorial. What is jQuery jQuery is a JavaScript Library The purpose of jQuery is to make it much easier to use JavaScript on your website JavaScript.
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.
Ajax SUBMITTED BY NITIN RAMANI C.S.E 3 rd Y 5 th S R.N CS SUBMITTED TO PRO. PUSHPARAJ PATEL SIR.
Introduction to AJAX Pat Morin COMP Outline What is AJAX? – History – Uses – Pros and Cons An XML HTTP Transaction – Creating an XMLHTTPRequest.
What is jQuery?.
What is AJAX ? Asynchronous Javascript and XML.
JavaScript and Ajax (Ajax Tutorial)
AJAX AJAX = Asynchronous JavaScript and XML.
Tek Raj Chhetri Code for Humans not for machine.
CS 371 Web Application Programming
Intro to jQuery jQuery is a popular, and extensible, JavaScript library Supports … DOM manipulation CSS manipulation HTML event methods Effects & animations.
AJAX and REST.
Introduction to Web programming
JQuery Basics 소속 / 작성자 이 문서는 나눔글꼴로 작성되었습니다. 설치하기.
AJAX.
Web System & Technology
AJAX and JSP ISYS 350.
NMD202 Web Scripting Week9.
Asynchronous Javascript And XML
Web Programming Language
E-commerce Applications Development
Document Object Model.
Web Programming Language
AJAX CS-422 Dick Steflik.
Web Technology Even Sem 2015
AJAX and JSP ISYS 350.
SEEM4540 Tutorial 3 jQuery Wong Wai Chung.
JQuery.
Presentation transcript:

Web Programming JAvaScript Ajax Programming Web Programming /38

Web Programming /38 jQuery Event Methods jQuery Syntax For Event Methods $("p").click(); Or $("p").click(function(){ // action goes here!! });

Web Programming /38 jQuery Event Methods $("p").click(function(){ $(this).hide(); }); $("p").dblclick(function(){ $(this).hide(); }); $("#p1").mouseup(function(){ alert("Mouse up over p1!"); });

Web Programming /38 JQuery Selector The #id Selector $("#test") The.class Selector $(".test") The element Selector $("p")

Web Programming /38 JQuery The element Selector The #id Selector $("#test") Example $(document).ready(function(){ $("button").click(function(){ $("#test").hide(); }); });

Web Programming /38 JQuery The element Selector The.class Selector $(".test") Example $(document).ready(function(){ $("button").click(function(){ $(".test").hide(); }); });

Web Programming /38 JQuery The element Selector The element Selector $("p") Example $(document).ready(function(){ $("button").click(function(){ $("p").hide(); }); });

Web Programming /38 Example $(document).ready(function(){ $("button").click(function(){ $("#test").hide(); }); This is a heading This is a paragraph. This is another paragraph. Click me

Web Programming /38 Ajax ? AJAX = Asynchronous JavaScript and XML. AJAX is not a new programming language, but a new way to use existing standards. AJAX is the art of exchanging data with a server, and updating parts of a web page - without reloading the whole page.

Web Programming /38 Ajax Process

/38 Ajax Process

Web Programming /38 Ajax Process by Java Script createXMLHttpRequest() Event open send Onready statechange //do somthing

Web Programming /38 createXMLHttpRequest() function createXMLHttpRequest() { if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); }

Web Programming /38 Function Ajax function submitRunAjax(){ var url = “test.jsp"; createXMLHttpRequest(); xmlHttp.onreadystatechange = handleStateChangeAjax; xmlHttp.open("POST", url, true); xmlHttp.send(null); }

Web Programming /38 Function Ajax function handleStateChangeAjax() { if(xmlHttp.readyState == 4) { if(xmlHttp.status == 200) { //do somthing }else { alert("Error Xml in System"); return false; }

Web Programming /38 Function Ajax - > Do Somthing window.location.reload(); window.location = 'index.jsp';

Web Programming /38 Ajax with Jquery $("button").click(function(){ $.ajax({url: "test.jsp", success: function(result){ $("#div1").html(result); }}); });