Embedding XML in HTML: Using Data Islands Eugenia Fernandez IUPUI.

Slides:



Advertisements
Similar presentations
Chapter 16 Dynamic HTML: Data Binding with Tabular Data Control.
Advertisements

Working with Forms. how are forms manipulated? the document object contains an array of forms objects, one for each form, in document order –forms[] any.
Svetlin Nakov Telerik Corporation
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Session 12 Dynamic HTML: Filters and Transitions, Data Binding with Tabular Data Control Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
HTML and XHTML Controlling the Display Of Web Content.
Integrating Access with the Web and with Other Programs.
USER INTERACTIONS: FORMS
XML A Standard for organizing data. Used for Exchanging data between systems. Used to define XHTML. For organizing Hierarchical data. XML tags don't have.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements.
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
Some Basic Database Terminology
Forms and Form Controls Chapter What is a Form?
CSE 382/ETE 334 Internet and Web Technology Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Posting XML Data From the Client to a Server Eugenia Fernandez IUPUI.
HTML Hyper Text Markup Language It is used for describing web documents or web pages. A markup language is set of markup tags. HTML documents are described.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
XHTML1-1 Extensible HyperText Markup Language (XHTML) Part 2 Xingquan (Hill) Zhu
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,
XP 1 New Perspectives on XML Binding XML Data with Internet Explorer.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
New Perspectives on XML, 2nd Edition Tutorial 9B1 USING XML AS A DATA SOURCE TUTORIAL 9B.
PHP Form Introduction Getting User Information Text Input.
HTML Form Teppo Räisänen LIIKE/OAMK Basic Structure of a HTML Form The element defining a form is ’form’ Form’s most important attributes are The.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
7 Chapter Seven Client-side Scripts. 7 Chapter Objectives Create HTML forms Learn about client-side scripting languages Create a client-side script using.
Using an HTML image (img) element’s onclick event to change the source (src) of an iframe to an embedded youtube video.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Data Binding with Tabular Data Control. Objective To understand Dynamic HTML data binding. To be able to sort and filter data directly on the client without.
Customizing Aspen Templates TEC04 Elizabeth Lucchese.
TRAINING SESSIONS.NET Controls.  Standard Controls  Label  Textbox  Checkbox  Button, Image Button, Image control  Radio Button  Literal  Hyperlink.
Chapter 16 DHTML: Data Binding CIS 275—Web Application Development for Business I.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer Science & Mathematics, Universiti Teknologi.
Project 6 Creating Forms on a Web Page. Objectives Define terms related to forms Describe the different form controls and their uses Use the tag Create.
HTML Creating Forms on a Web Page. 2 Objectives  Discuss the process of creating a form  Distinguish between data input controls and text input controls.
Basic HTML.
HTML FORMS Basharat Mahmood, Department of Computer Science,CIIT,Islamabad,Pakistan. 1.
Week 8.  Form controls  Accessibility with ARIA.
Creating Forms on a Web Page. 2 Introduction  Forms allow Web developers to collect visitor feedback  Forms create an environment that invites people.
Understand Databound Controls Windows Development Fundamentals LESSON 4.2A.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 16 - Dynamic HTML: Data Binding with Tabular Data Control Outline 16.1 Introduction 16.2 Simple.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
HTML Tables Tables are defined with the tag. A table is divided into rows (with the tag), and each row is divided into data cells (with the tag). td stands.
Generating XML Data from a Database Eugenia Fernandez IUPUI.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
Creating and Processing Web Forms
Server-Side Application and Data Management IT IS 3105 (Spring 2010)
The Web Warrior Guide to Web Design Technologies
Chapter 5 Introduction to XHTML: Part 2
Tutorial 7 Working with Multimedia
XML Partha Pratim.
Working with Multimedia
Database Applications
Working With Databases
The Internet 10/27/11 XHTML Forms
HTML5 - 2 Forms, Frames, Graphics.
Presentation transcript:

Embedding XML in HTML: Using Data Islands Eugenia Fernandez IUPUI

Internet Explorer 5 Approach Treats XML as a Data Source Object or DSO, also referred to as a data island Handles symmetric data best, i.e. data that resembles a relational table Can use multiple data islands in same HTML file Each data island requires unique ID

Defining a Data Island A data island is defined within the and HTML tags. –explicitly, by embedding XML data directly –implicitly, by reference to external XML file some XML

Mapping XML Data to an ADO Recordset XML data within an XML data island is treated as an ADO recordset. Each main element maps to a record in the ADO recordset, and each child element maps to a field in the record.

ADO Mapping Example The Autobiography of Benjamin Franklin Benjamin Franklin 8.99 The Confidence Man Herman Melville TitleAuthorPrice The Autobiography of Benjamin Franklin Benjamin Franklin8.99 The Confidence ManHerman Melville11.99

Binding Data Islands to HMTL Elements Individual fields can be bound to HTML tags using the DATASRC and DATAFLD attributes –DATASRC specifies the ID of the XML data island. The ID must be preceded with #. –DATAFLD specifies the XML field from which data is taken.

HTML Elements That Support DSO Binding A APPLET BUTTON DIV FRAME IFRAME INPUT (where TYPE = CHECKBOX, HIDDEN, LABEL, PASSWORD, RADIO, TEXT) IMG LABEL MARQUEE SELECT SPAN TABLE TEXTAREA

Displaying Data in HTML Tables Use a TABLE to display multiple rows of data. Set the DATASRC in the TABLE tag. For each TD, include an HTML element and set its DATAFLD attribute The data binding agent automatically populates multiple rows, for each record in the XML dataset.

Paging the DSO Data For large XML data islands, DSO allows the data to be displayed in pages. The size of the page is set through the DATAPAGESIZE attribute in the TABLE tag.

Accessing Repeating XML Elements Use a nested table to access repeating XML elements Gourmet Microwave Cooking Charlotte Waves Regina Cooker Mario Gourd

Accessing XML Attributes XML attributes are treated as child elements The Autobiography of Benjamin Franklin Benjamin Franklin 8.99 The Confidence Man Herman Melville 11.99

Navigating the DSO Recordset You can navigate through your DSO Recordset by adding script to call the ADO move methods: –Move, MoveFirst, MoveLast, MoveNext, MovePrevious Example xmldso.recordset.MoveNext

Adding Navigation Add a field to display the data Add a button to invoke the desired move method. Title:

Adding Navigation, cont. Set an onclick event procedure for the button that calls the move command. Sub btnNext_onclick() xmldso.recordset.MoveNext End Sub

Sources “Building XML-Based Web Applications” a Microsoft Certified Course.