New Perspectives on XML, 2nd Edition Tutorial 9B1 USING XML AS A DATA SOURCE TUTORIAL 9B.

Slides:



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

Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Introduction to HTML & CSS
Dreamweaver Forms Overview. Forms – A Little Review Most user/webpage communication is one way, like this: Most user/webpage communication is one way,
Microsoft Excel 2010 ® ® Tutorial 6: Managing Multiple Worksheets and Workbooks.
Integrating Access with the Web and with Other Programs.
Automating Tasks With Macros
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Tutorial 16 Working with Dynamic Content and Styles.
Tutorial 6 Working with Web Forms
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
The Switchboard User Interface. Prof. Leighton2 User Friendly Databases Create an attractive main menu Help the database users maneuver through the database.
Access Tutorial 1 Creating a Database
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
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.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 1 1 Microsoft Access 2003 Tutorial 1 – Introduction To Microsoft Access 2003.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
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.
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Access Lesson 2 Creating a Database
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Web Technologies Website Development Trade & Industrial Education
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Website Development with Dreamweaver
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
HTML Concepts and Techniques Fourth Edition Project 12 Creating and Using XML Documents.
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
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,
Intro to Excel - Session 6.21 Tutorial 6 - Session 6.2 Integrating Excel with Other Windows Programs and the World Wide Web.
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.
PHP Form Introduction Getting User Information Text Input.
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.
® Microsoft Office 2013 Access Creating a Database.
Tutorial 91 Databases A database is an organized collection of related information stored in a file on a disk A database allows companies to store information.
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.
Chapter 16 DHTML: Data Binding CIS 275—Web Application Development for Business I.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 5 1 Microsoft Office Access 2003 Tutorial 5 – Enhancing a Table’s Design.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
LESSON : EVENTS AND FORM VALIDATION -JAVASCRIPT. EVENTS CLICK.
B Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Working with PDF and eText Templates.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
Embedding XML in HTML: Using Data Islands Eugenia Fernandez IUPUI.
Generating XML Data from a Database Eugenia Fernandez IUPUI.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
Tutorial 6 Working with Web Forms
ASP.NET Programming with C# and SQL Server First Edition
Tutorial 1 Creating a Database
Access Tutorial 1 Creating a Database
Access Creating a Database
Access Creating a Database
Microsoft Access 2003 Illustrated Complete
Access Tutorial 1 Creating a Database
Microsoft Office Access 2003
Microsoft Office Access 2003
Microsoft Office Access 2003
Access Tutorial 1 Creating a Database
Access Tutorial 1 Creating a Database
Presentation transcript:

New Perspectives on XML, 2nd Edition Tutorial 9B1 USING XML AS A DATA SOURCE TUTORIAL 9B

New Perspectives on XML, 2nd Edition Tutorial 9B2 THE DATA SOURCE OBJECT ActiveX Data Objects (ADO) is a data-access technology developed by Microsoft. ADO allows you to work with the Data Source Object by applying a method or by changing one of the properties of the DSO. The syntax for applying a method is: id.recordset.method()

New Perspectives on XML, 2nd Edition Tutorial 9B3 THE DATA SOURCE OBJECT Here, id is the name of the data island in the Web document and method is the name of the method supported by ADO. There are several methods that can be applied to DSOs.

New Perspectives on XML, 2nd Edition Tutorial 9B4 THE DATA SOURCE OBJECT

New Perspectives on XML, 2nd Edition Tutorial 9B5 THE DATA SOURCE OBJECT For example, if you want to display the last record in a DSO whose id is “staffInfo”, run the following method: staffInfo.recordset.moveLast( ) The simplest way to run a method is to assign the method to the onClick event handler of a as shown below:

New Perspectives on XML, 2nd Edition Tutorial 9B6 THE DATA SOURCE OBJECT When the user clicks the button, the browser runs the command indicated by the onClick event handler, displaying the last record.

New Perspectives on XML, 2nd Edition Tutorial 9B7 ASSIGNING A RECORDSET METHOD

Practice P P. 533 New Perspectives on XML, 2nd Edition Tutorial 9B8

9 TABLE BINDING Using table data binding, each record can be displayed in a different row of a table. The syntax is:

New Perspectives on XML, 2nd Edition Tutorial 9B10 TABLE BINDING In the example, id is the name of the data island, field1, field2 are the fields from the recordset.

Practice P P New Perspectives on XML, 2nd Edition Tutorial 9B11

New Perspectives on XML, 2nd Edition Tutorial 9B12 TABLE PAGES As you add more records to your XML document, a table can become long and unwieldy. One way to fix this is to give the user the option of limiting the number of records displayed at any one time. The user can then move forward of backward that number of records at a time. This is called paging.

New Perspectives on XML, 2nd Edition Tutorial 9B13 TABLE PAGES To specify the page size, add the dataPageSize attribute to the tag: datapagesize=“number” number is the number of records you want displayed in a single page.

New Perspectives on XML, 2nd Edition Tutorial 9B14 NAVIGATING A TABLE PAGE A unique identifier must be assigned to a table using the ID attribute before writing a command to navigate a table page. The syntax to do this is: Here, id is the name you assign to the table object. This is needed because the commands to navigate the table pages act on the table itself not the recordset.

New Perspectives on XML, 2nd Edition Tutorial 9B15 TABLE METHODS AND PROPERTIES

New Perspectives on XML, 2nd Edition Tutorial 9B16 TABLE METHODS AND PROPERTIES To run these commands, add the command to the onClick event handler of a tag. For example, to move to the last page in a data table named “StaffTable”, you enter the attribute: onClick=“staffTable.lastPage( )”

Practice P P. 540 P. 541 New Perspectives on XML, 2nd Edition Tutorial 9B17

New Perspectives on XML, 2nd Edition Tutorial 9B18 HIERARCHICAL RECORDSETS

New Perspectives on XML, 2nd Edition Tutorial 9B19 HIERARCHICAL RECORDSETS To bind the Employee fields in the previous slide to a table, you create a table as follows: …

New Perspectives on XML, 2nd Edition Tutorial 9B20 THE FINAL WEB PAGE

Practice P. 543 P P P. 549 New Perspectives on XML, 2nd Edition Tutorial 9B21