Ajax 101 for CF Programmers Randy Brown – Michigan State University

Slides:



Advertisements
Similar presentations
AJAX Development By Gary Mandela December 26,
Advertisements

Testing Web Applications & Services Testing Web Applications & Web Services.
Web Toolkit Julie George & Ronald Lopez 1. Requirements  Java SDK version 1.5 or later  Apache Ant is also necessary to run command line arguments 
A Rich-Interactive Web Experience Randy Brown and Dominic DiCicco Michigan State University, University Development.
Do We Really Need Rich-Interface Technologies? Yifan Zhang
AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
Cloud Computing Lecture #7 Introduction to Ajax Jimmy Lin The iSchool University of Maryland Wednesday, October 15, 2008 This work is licensed under a.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
Website Development with PHP and MySQL Introduction.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
© 2006 by IBM 1 How to use Eclipse to Build Rich Internet Applications With PHP and AJAX Phil Berkland IBM Software Group Emerging.
Chapter 6 DOJO TOOLKITS. Objectives Discuss XML DOM Discuss JSON Discuss Ajax Response in XML, HTML, JSON, and Other Data Type.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Presented by…. Group 2 1. Programming language 2Introduction.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Introduction to AJAX AJAX Keywords: JavaScript and XML
Ajax (Asynchronous JavaScript and XML). AJAX  Enable asynchronous communication between a web client and a server.  A client is not blocked when an.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
1 Ajax. 2 What’s Ajax? AJAX is a combination of a few technologies that has come together in the past few years AJAX used to be an acronym for Asynchronous.
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide Build Great Web Application 'Fast and Easy'
Ruth Betcher Ruth Christie
11/13/2007 A synchronous J avaScript A nd X ML Gloria Law Joshua Mahaz.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
AJAX Without the “J” George Lawniczak. What is Ajax?
JDeveloper 10g and JavaServer Faces: High-Performance UIs on the Web Avrom Roy-Faderman Senior Programmer May, 2006.
Intro to Ajax Fred Stluka Jan 25, /25/2006Intro to AjaxFred Stluka2 What is Ajax? "Asynchronous JavaScript and XML" New name for an old technique:
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
Copyright 2007 Adobe Systems Incorporated. 1 ColdFusion 8 : Advanced AJAX Development Rakshith N Computer Scientist Jan 02, 2008.
Instructor, Dr. Khalili Bahram Jeevan Kumar Gogineni.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
The Web Architecture and ASP.NET. Slide 2 Review of the Web (1) It began with HTTP and HTML, which delivers static Web pages to browsers which would render.
ColdFusion MX Rob Filardo and Lindsay Matteo A Brief History ColdFusion 1.0 was created in 1995 by Adam Berrey in order to help HTML programmers create.
Understanding AJAX Hype, Hope, Hurt and Help for the Web MJTS May 4th, 2006 _________________________ Terence Conklin, Conklin Systems
OWL Jan How Websites Work. “The Internet” vs. “The Web”?
Random Logic l Forum.NET l AJAX Behind the buzz word Forum.NET ● January 23, 2006.
Ventsislav Popov Crossroad Ltd.. 1. What is AJAX?  AJAX Concept  ASP.NET AJAX Framework 2. ASP.NET AJAX Server Controls  ScriptManager, UpdatePanel.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
Building Rich Web Applications with Ajax Linda Dailey Paulson IEEE – Computer, October 05 (Vol.38, No.10) Presented by Jingming Zhang.
Telerik Software Academy ASP.NET Web Forms Telerik Software Academy ASP.NET Web Forms.
INTRODUCTION TO WEB APPLICATION Chapter 1. In this chapter, you will learn about:  The evolution of the Internet  The beginning of the World Wide Web,
Ajax for Dynamic Web Development Gregory McChesney.
 AJAX – Asynchronous JavaScript and XML  Ajax is used to develop fast dynamic web applications  Allows web pages to be updated asynchronously by transferring.
Introduction and Principles Web Server Scripting.
Introduction to AJAX Sue Brandreth. What is Ajax?
AJAX – Asynchronous JavaScript And XML By Kranthi Kiran Nuthi CIS 764 Kansas State University.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
 AJAX technology  Rich User Experience  Characteristics  Real live examples  JavaScript and AJAX  Web application workflow model – synchronous vs.
AJAX CS456 Fall Examples Where is AJAX used? Why do we care?
PHP and AJAX. Servers and Clients For many years we tried to move as much as possible to the server. Weak clients, poor bandwidth, browser compatibility..
Ajax! Ajax Programming Ajax! Ajax Programming. Ajax! Ajax Programming Take a look at a typical desktop application (Spreadsheet app, etc.) The program.
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
NCCUCS 軟體工程概論 Lecture 5: Ajax, Mashups April 29, 2014.
Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio.
Ajax & Client-side Dynamic Web Gunwoo Park (Undergraduate)
Arklio Studija 2007 File: / / Page 1 Automated web application testing using Selenium
Web Programming Language
+ A Look at CFAjax Stephen Rittler CounterMarch Systems
Web Engineering.
Asynchronous Java script And XML Technology
Haritha Dasari Josue Balandrano Coronel -
Web UI Basics ITM 352.
AJAX.
DWR: Direct Web Remoting
AJAX Robin Burke ECT 360.
Intro to Ajax Fred Stluka Jan 25, 2006.
Web Application Development Using PHP
Presentation transcript:

Ajax 101 for CF Programmers Randy Brown – Michigan State University

What is AJAX? A synchronous J avaScript A nd X ML A nice way to create a state-full like connection in a stateless environment. A good way to keep application logic on the server side without using JSP. In regards to a UI it makes the webpage more usable and interaction more responsive.

AJAX Definition Summary AJAX is a Web development technique for creating interactive web applications that use the DOM (Document Object Model) to interact with various backend server technologies without refreshing the browser.

How does AJAX work? Before AJAX can be invoked you must make your traditional HTML page request. AJAX uses xmlHttpRequest to make what I call a SIDEWAYS request to the server. The sideways request can be done via JavaScript or VBScript.

How does AJAX work? Step 1 – HTML Browser Request Basically this is showing the user typing in a web address and pressing ENTER or GO.

How does AJAX work? Step 2 – HTML Server to Browser Response The web server sends web-page to client; this happens on all web server platforms.

How does AJAX work? Step 3 – SIDEWAYS Request to Server Note earlier I coined the term SIDEWAYS request to mean an xmlHttpRequest

How does AJAX work? Step 4 – Server responds to my SIDEWAYS request Note how small the data response is. I’m displaying how the server only sends a piece of data back and not an entire web page with header and etc…

How does AJAX work? Step 5 –SIDEWAYS request data is added and displayed in the client browser. This is a complete AJAX request. Programmers will have to use JavaScript and CSS to control display and or how you present the data returned if at all.

How does AJAX work? Step 6 – SUMMARY Complete AJAX Request Graphically this is easy to understand. Please download serviceCapture to get a full view of what really happened. Lets build a CRUDE and simple example using CF as our server technology.

Tools needed to make AJAX A TCP/IP port 80 sniffer like serviceCapture (kevinlangdon.com/serviceCapture/ ) HTML Editor like DreamWeaver 8 Javascript Editor – DreamWeaver 8 A good Javascript Reference like

AJAX Simple Example using CFMX & JavaScript This simple application will use AJAX to communicate with a CFM file to determine if a username is already In this example I will be using DreamWeaver 8 and serviceCapture to explain what’s going on.

Examples of AJAX websites Google Suggest ( ) Google Maps ( maps.google.com ) maps.google.com Netfix top 100 ( Instant Domain Name Search (instantdomainsearch.com)instantdomainsearch.com

What is ajaxCFC AJAX model/framework implementation based upon the CFMX language and components to promote the RAD (Rapid Application Development) philosophy. Downloaded from Developed by Rob Gonda Licensed under the Apache License Version 2.0 Works with ColdFusion MX 6.0, 6,1, 7.0 and Blue Dragon

ajaxCFC Definition Summary from Rob Gonda “ajaxCFC is a ColdFusion framework meant to speed up ajax application development and deployment by providing developers seamless integration between JavaScript and ColdFusion, and providing built-in functions, such as security and debugging, to quickly adapt to any type of environment and helping to overcome cross- browser compatibility problems.”

How does ajaxCFC work? Step 0 – Do Once or as needed PREPARE your server environment Step 1 download and install the libraries on the server Step 2 Fix your mappings to the files Step 3 extend your components

How does ajaxCFC work? Step 1 – HTML Browser Request for CFM page Basically this is showing the user typing in a web address and pressing ENTER or GO.

How does ajaxCFC work? Step 2 – HTML Server to Browser Response The web server send web-page to client; this happens on all web server platforms. However in the CFMX world the request would get routed to the CFMX application server before the page is returned to the client.

How does ajaxCFC work? Step 3 – SIDEWAYS Request to Server In the case of ajaxCFC request are made via JavaScript using the infamous utils.js and it’s DWR (Direct Web Remoting) commands. Read more about DWR at

How does ajaxCFC work? Step 4 – Server responds to my SIDEWAYS request In the case of ajaxCFC the request is returned as pure JavaScript code to the callback handler (instead of XML or JSON) to vastly improve performance

How does ajaxCFC work? Step 5 –SIDEWAYS request data is added/displayed in the browser This is a complete ajaxCFC request. CF programmers will still have to use JavaScript and CSS to control display and or how you present the data returned if at all.

How does ajaxCFC work? Step 6 – SUMMARY Complete ajaxCFC Request Graphically the ajaxCFC model resembles the AJAX model. Please download serviceCapture to get a full view of what really happened. Lets build a CRUDE example

ajaxCFC Simple Example This simple example will use ajaxCFC to request a variable from a server component and return it back to the client without refreshing the browser In this example I will be using DreamWeaver 8 and serviceCapture to explain what’s going on.

ajaxCFC Examples Weather example ( cfm) cfm Simple State Suggest ( suggest/) suggest/ Fidelity Project ( homesold.fidelitylabs.com/ ) homesold.fidelitylabs.com/ Car Finder using Google earth ( )

AJAX vs. ajaxCFC? AJAX is like straight HTML or the base to web development. In comparison CFML is like an abstraction of HTML because CF developers write in CFMX but their applications deliver HTML to browsers. Therefore ajaxCFC is a model/framework/abstraction that works on with principles of AJAX.

Why Did I pick ajaxCFC RAD (Rapid Application Development) I’m a CF Programmer who likes to use webServices and components I feel this is a simpler approach than all of the other abstractions and pure AJAX.

QUESTIONS

Credits Rob Gonda – ajaxCFC Cameron Adams - Jumping on the AJAX bandwagon presentation CFAjax –