Ajax XMod for Dummies Building DNN Ajax Modules Without Programming Dave McMullen SoCal DNN Users Group 2/7/07 –

Slides:



Advertisements
Similar presentations
3rd Annual Plex/2E Worldwide Users Conference Page based on Title Slide from Slide Layout palette. Design is cacorp Title text for Title or Divider.
Advertisements

AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
Tutorial 6 Working with Web Forms
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
XMLHttpRequest Object and XML What we should learn in this lesson –What is the XHR object? –How to create the XHR objects? –XHR object properties –XHR.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
CST JavaScript Validating Form Data with JavaScript.
JQuery CS 268. What is jQuery? From their web site:
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
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.
Ajax Basics The XMLHttpRequest Object. Ajax is…. Ajax is not…. Ajax is not a programming language. Ajax is not a programming language. Ajax is a methodology.
PHP and AJAX ISYS 475. AJAX Asynchronous JavaScript and XML: – JavaScript, Document Object Model, Cascade Style Sheet, XML, server-side script such as.Net,
JavaScript & jQuery the missing manual Chapter 11
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Object-Oriented Application Development Using VB.NET 1 Chapter 12 Web Forms, HTML, and ASP.NET.
Lecture 12 – AJAX SFDV3011 – Advanced Web Development Reference: 1.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
JavaScript, Fourth Edition Chapter 12 Updating Web Pages with AJAX.
AJAX and Java ISYS 350. AJAX Asynchronous JavaScript and XML: – Related technologies: JavaScript, Document Object Model, XML, server-side script such.
XP New Perspectives on XML, 2 nd Edition Tutorial 10 1 WORKING WITH THE DOCUMENT OBJECT MODEL TUTORIAL 10.
Posting XML Data From the Client to a Server Eugenia Fernandez IUPUI.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
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 In Action The Journey into Web2.0 Presented by Eric Pascarello.
USING XML AS A DATA SOURCE. Data binding is a process by which information in a data source is stored as an object in computer memory. In this presentation,
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
AJAX محمد احمدی نیا 2 Of 27 What is AJAX?  AJAX = Asynchronous JavaScript and XML.  AJAX is not a new programming language, but.
Fall 2006 Florida Atlantic University Department of Computer Science & Engineering COP 4814 – Web Services Dr. Roy Levow Part 2 – Ajax Fundamentals.
Chapter 4: Working with ASP.NET Server Controls OUTLINE  What ASP.NET Server Controls are  How the ASP.NET run time processes the server controls on.
Asynchronous Javascript And XML AJAX : an introduction UFCEUS-20-2 : Web Programming.
AJAX stands for Asynchronous JavaScript And XML. AJAX is a type of programming made popular in 2005 by Google (with Google Suggest). AJAX is not a new.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
AJAX Asynchronous JavaScript & XML A short introduction.
SYST Web Technologies SYST Web Technologies AJAX.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
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
1111 Creating HTML Programatically Objectives You will be able to Invoke C# code on the server from an ASP.NET page. Write C# code to create HTML.
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.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 AJAX technology  Rich User Experience  Characteristics  Real live examples  JavaScript and AJAX  Web application workflow model – synchronous vs.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
JavaScript and Ajax Week 10 Web site:
CITA 330 Section 10 Web Remoting Techniques. Web Remoting Web Remoting is a term used to categorize the technique of using JavaScript to directly make.
NCCUCS 軟體工程概論 Lecture 5: Ajax, Mashups April 29, 2014.
AJAX. Objectives Understand and apply AJAX Using AJAX in DOJO library.
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
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 AJAX ? Asynchronous Javascript and XML.
JavaScript and Ajax (Ajax Tutorial)
AJAX AJAX = Asynchronous JavaScript and XML.
Web Forms, HTML, and ASP.NET
AJAX and JSP ISYS 350.
JavaScript & AJAX.
ISC440: Web Programming 2 AJAX
Web Technology Even Sem 2015
AJAX and JSP ISYS 350.
Presentation transcript:

Ajax XMod for Dummies Building DNN Ajax Modules Without Programming Dave McMullen SoCal DNN Users Group 2/7/07 –

Types of Sites Brochure site Dynamic data site Suitable Applications Real Estate Listings Golf Course Listings Marina Listings College Course Listings Product Catalogs Product Reviews "What's New" Module Photo Album/Image Gallery Classified Ads Customer Support Request Form Customizable Feedback Form FAQ Module Links Module News Manager To-Do List Journal Dynamic Navigation Menu "Shadow" Module Replacement DNN User Information Page

Approaches Non-Programming –Lite: XMod FormViews –Heavy: XMod Templates Programming –Lite: Web Developer (DNN Templates) –Heavy duty: Visual Studio (DNN ASCX)

XMod Forms List templates Detail templates

Forms Auto-Layout –quick form creation –no HTML needed Custom HTML Layout –complete control over layout –greater ability to inject Javascript functionality ASCX-Based Form –XMod handles the data –can use 3rd party custom ASP.NET controls

Form Tools Form Settings and Permissions Form Editor –Controls (“Fields”) "ref" property - No other control on the form can have the same "ref" child tags – property tags –Format tool

Templates Optional: FormView does not use them. Create mini-web pages Two basic flavors –List View "headlines" describe how a single record should be displayed. XMod then repeats that layout for all the other records it displays in the list. mix HTML tags and special XMod tags to tell XMod how your data should be displayed. Has tags that apply to lists. Can create multiple templates, each with its own look and/or functionality, but all working from the same set of data. –Detail View "full story" temporarily hide the list view and replace it with the detail view intended to display only one record but could use a DetailView template in place of a ListView template (minus its list tags).

Creating Templates Add to HTML tags special XMod Template Tags –Begin with "xmod" –Most tags are "empty" tags (no closing tag). proper XHTML syntax: a closing "/>" –Used most: " " Required attribute: "name" Steps –Editor – tag "wrapper" (container) for template

Ajax Uses XMLHttpRequest Javascript object –Except IE, which uses an ActiveXObject therefore need a try/catch –xmlHttp=new XMLHttpRequest(); Vs. HTML GET or POST (which do postbacks) –HTTP request does not do a postback –Made popular by Google Suggest

Ajax Properties onreadystatechange stores the function that processes server response - xmlHttp.onreadystatechange=function() readyState – status of server response not initialized set up sent in process complete responseText server data without reloading page if(xmlHttp.readyState==4) { document.myForm.time.value= xmlHttp.responseText; }

Ajax Methods open() specifies server-side script (.asp) URL add querystring that contains the content to process send() sends request need an event to activate Javascript usually an onClick or onChange could be onKeyUp xmlHttp.open("GET","time.asp",true); xmlHttp.send(null);

Ajax Procedure Create an HTML page Create the Javascript file (.js) Create the server.asp page

Ajax Procedure Create an HTML page – tag for.js src –event handler to activate Ajax in.js onclick (button) onchange (dropdown onkeyup (text box) … –Id placeholder for Ajax output Create the Javascript file (.js) Create the server.asp page function ajaxFunction() … Name: Time:

Ajax Procedure Create an HTML page Create the Javascript file (.js) create function that calls Ajax Create XMLHTTP object Test that the browser did it create function to handle responseText tests the object's status inserts responseText into the page (innerHTML) assign a function to onreadystatechange that set up URL for open() send() Create the server.asp page var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) … xmlHttp.onreadystatechange= function() … { } xmlHttp.open("GET", "time.asp", true); xmlHttp.send(null);

Ajax Procedure Create an HTML page Create the Javascript file (.js) Create the server.asp page access data –hardcoded array –database connection connection object (e.g. ADODB) sql select connection provider (e.g. Jet) connection string/load path (e.g. mdb) recordset object (e.g. ADODB) –XML file –create XMLDOM object –set object load path get input request (parameters) – e.g. Xpath for XML nodes process request, e.g. loop through records or nodes output response, e.g. write response to a response.write(time)

Ajax with XMod handles internal Javascript “plumbing” sends receives data from your web server handy shortcuts Can insert data into an element on the page Can send data to a custom function form tag template tag

Demos XMod: User Profile Ajax: –Landmarks –InsertResult –CustomFunction

Next Steps Do it! Go to Review DNN modules at : Flatburger free license for a year Ajax/Javascript: Dave McMullen: