ColdFusion 8 Ajax Features Overview Scott Bennett www.ColdFusionGuy.com.

Slides:



Advertisements
Similar presentations
JavaScript and AJAX Jonathan Foss University of Warwick
Advertisements

Video, audio, embed, iframe, HTML Form
Web Applications Development Using Coldbox Platform Eddie Johnston.
2007 Adobe Systems Incorporated. All Rights Reserved. 1 Glenda Vigoreaux Adobe Certified Instructor roundpeg, Inc. Component Development.
6/3/2015eBiquity1 Tutorial on AJAX Anubhav Kale (akale1 AT cs DOT umbc DOT edu)
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Tutorial 14 Working with Forms and Regular Expressions.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
SQL Server 2000 and XML Erik Veerman Consultant Intellinet Business Intelligence.
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.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
JavaScript & jQuery the missing manual Chapter 11
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Scott Marino MSMIS Summer Session Web Site Design and Authoring Session 9 Scott Marino.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
Building a UI with Zen Pat McGibbon –Sales Engineer.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
WEEK 3 AND 4 USING CLIENT-SIDE SCRIPTS TO ENHANCE WEB APPLICATIONS.
Writing various AJAX forms in Drupal 7 1. Overview of Form API 2. Ctools 2.1 Ctools features 3. Ajax 3.1 Ajax Forms in Drupal 4. Putting it all together.
Data File Access API : Under the Hood Simon Horwith CTO Etrilogy Ltd.
CSCI 6962: Server-side Design and Programming Introduction to Java Server Faces.
Copyright 2007 Adobe Systems Incorporated. 1 ColdFusion 8 : Advanced AJAX Development Rakshith N Computer Scientist Jan 02, 2008.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
CSCI 6962: Server-side Design and Programming Web Services.
Web Services Week 7 Aims: A detailed look at the underlying mechanisms for communication between web services Objectives: SOAP, WSDL, UDDI.
Introduction to Applets CS 3505 Client Side Scripting with applets.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
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.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Using Client-Side Scripts to Enhance Web Applications 1.
Website Development with PHP and MySQL Saving Data.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
JavaScript - A Web Script Language Fred Durao
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Binding Basics.
Facebook API Kelly Orser. Client Libraries Client libraries will simplify the calls to the platform by reducing the amount of code you have to write.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
CSCI 6962: Server-side Design and Programming JSF DataTables and Shopping Carts.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
JSON – Java Script Object Notation. What is JSON JSON is a data interchange format Interactive Web 2.0 applications, no more use page replacement. Data.
Creating Animations, Working with Graphics, and Accessing Data Lesson 9.
Jennifer Widom JSON Data Introduction. Jennifer Widom JSON Introduction JavaScript Object Notation (JSON)  Standard for “serializing” data objects, usually.
CHAPTER 8 AJAX & JSON WHAT IS AJAX? Ajax lets you…
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.
Flux & React Web Application Development Mark Repka, Rich McNeary, Steve Mueller.
Spry. Adobe Dreamweaver CS3 and Spry Adobe Dreamweaver CS3 allows the user to include additional functionality provided by the Spry JavaScript library.
Web Services Essentials. What is a web service? web service: software functionality that can be invoked through the internet using common protocols like.
JQuery form submission CIS 136 Building Mobile Apps 1.
Unit 4 Working with data. Form Element HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes, radio-buttons,
11 jQuery Web Service Client. 22 Objectives You will be able to Use JSON (JavaScript Object Notation) for communcations between browser and server methods.
Ext JS - Direct Bridging The Gap A DMSBT Presentation By Timothy Chandler.
National College of Science & Information Technology.
Web API - Introduction AJAX, Spring Data REST SoftUni Team Web API
AJAX and REST.
YQL Kevin Murphy CMPS 183.
Testing RESTful Web APIs
Intro to Web Services Consuming the Web.
Presentation transcript:

ColdFusion 8 Ajax Features Overview Scott Bennett

ColdFusion Ajax tags and Functions Data TagsUI TagsFunctions cfajaximportcfdiv AjaxLink cfajaxproxycfselect AjaxOnLoad cfsprydatasetcfgrid DeserializeJSON cftextarea IsJSON cfinput QueryConvertForGrid cftree SerializeJSON

ColdFusion 8 provides two types of Ajax features: Data and development features User interface (UI) features

Data and development features cfajaxproxy cfsprydataset cfajaximport Data Binding JSON Ajax Debugging ColdFusion data and development features help you develop effective Ajax applications that use ColdFusion to provide dynamic data. They include many features that you can use with other Ajax frameworks, including Spry.

cfajaxproxy Create a JavaScript proxy for a ColdFusion component, for use in an AJAX client that provides access to all remote functions in the CFC. Create a proxy for a single CFC method, JavaScript function, or URL that is bound to one or more control attribute values.

cfsprydataset Creates a Spry XML or JSON data set from the results of a bind expression. Applications that use Spry framework elements, such as dynamic regions, can use this tag to populate the Spry elements with information based on ColdFusion control input.

cfajaximport Controls the JavaScript files that are imported for use on pages that use ColdFusion AJAX tags and features. Although ColdFusion can usually automatically determine and import the required files, sometimes you must manually specify the information. The ability to change the file location lets you support a wide range of configurations and use advanced techniques, such as application-specific styles.

Data Binding Binding allows an application that uses form and display tags to dynamically display information based on form input. Sets up event listeners to automatically update the display when the bound input data changes Display form data directly in other form fields Pass form field data as parameters to a CFC, a JavaScript function, or a URL

JSON ColdFusion provides several CFML functions that let you create and consume JSON (JavaScript Object Notation) format data on the server. –IsJSON() Evaluates whether a string is in valid JSON data interchange format. –SerializeJSON() Converts ColdFusion data into a JSON representation of the data. –DeserializeJSON() Converts a JSON string data representation into CFML data, such as a CFML structure or array. –QueryConvertForGrid() Converts query data to a structure that contains a paged subset of the query. Used in CFC functions that return data to Ajax format cfgrid controls in response to a bind expression.

AJAX Debugging Enable AJAX Debug Log Window –Allows display of the AJAX debug log window when the “cfdebug” flag is passed in the URL. ColdFusion Ajax features display information and error messages in this window, and several logging tags let you display additional information, including the structure of complex JavaScript variables.

User interface features Ajax-based HTML controls <cfgrid format="html"… <cfinput type="datefield"… <cftextarea richtext="yes"… <cftree format="html"… Pop-up menus and menu bars Container Tags User assistance <cfinput type="text“ autosuggest="BindExpression"…

Ajax-based HTML controls <cfgrid format="html"… –A dynamic, editable, sortable, data grid. <cfinput type="datefield"… –An input control that users can fill by selecting a date from a pop-up calendar. <cftextarea richtext="yes"… –A text area with a set of controls that let users format the displayed text. <cftree format="html"… –A dynamic, editable, tree-format representation of data.

Pop-up menus and menu bars –Creates a horizontal or vertical menu –Defines a divider or an entry in a menu

Container Tags –Creates an HTML div tag or other HTML container tag and lets you use asynchronous form submission or a bind expression to dynamically control the tag contents. –Creates a region of its container (such as the browser window or a cflayoutarea tag) with a specific layout behavior: a bordered area, a horizontal or vertically arranged box, or a tabbed navigator. –Defines a region within a cflayout tag body, such as an individual tab of a tabbed layout. –Creates a pod, an area of the browser window or layout area with an optional title bar and a body that contains display elements. –Creates a pop-up window in the browser. Does not create a separate browser pop-up instance.

User assistance <cfinput type="text“ autosuggest=“List/BindExpression"… –The autosuggest attribute specifies entry completion suggestions to display as the user types into a text input. The user can select a suggestion to complete the text entry. –You can either enter a list or specify a list or a bind expression in this attribute –Specifies tool tip text that displays when the user hovers the mouse pointer over the elements in the tag body. This tag does not require a form and is not used inside Flash forms.

AjaxLink() & AjaxOnLoad() AjaxLink() –Causes an HTML href attribute to display link results in the current Ajax container. When the browser follows a link that is specified by this function, the HTTP response does not replace the current page; instead, it populates the containing cfdiv, cflayoutarea, cfpod, or cfwindow control. AjaxOnLoad() –Causes the specified JavaScript function to run when the page loads.

ColdFusion AJAX JavaScript Functions ColdFusion.Ajax.submitForm ColdFusion.getElementValue ColdFusion.Grid.getGridObject ColdFusion.Grid.refresh ColdFusion.Grid.sort ColdFusion.JSON.decode ColdFusion.JSON.encode ColdFusion.Layout.collapseArea ColdFusion.Layout.createTab ColdFusion.Layout.disableTab ColdFusion.Layout.enableTab ColdFusion.Layout.expandArea ColdFusion.Layout.getBorderLayout ColdFusion.Layout.getTabLayout ColdFusion.Layout.hideArea ColdFusion.Layout.hideTab ColdFusion.Layout.selectTab ColdFusion.Layout.showArea ColdFusion.Layout.showTab ColdFusion.Log.debug ColdFusion.Log.dump ColdFusion.Log.error ColdFusion.Log.info ColdFusion.navigate ColdFusion.setGlobalErrorHandler ColdFusion.Tree.getTreeObject ColdFusion.Tree.refresh ColdFusion.Window.create ColdFusion.Window.getWindowObject ColdFusion.Window.hide ColdFusion.Window.onHide ColdFusion.Window.onShow ColdFusion.Window.show

Resources (Scott Bennett) (Todd Sharp)