Search these areas:
Help
Support Forums
Product Info



Introduction
DataWeb: What's New
Creating an Application
The DataWeb Designer
Application Management
Data Tables
Data Tables
Views
-View Basics
-Converting HTML Pages to Views
Converting an HTML Page to a View
Incorporating Custom HTML into a Template
-Incorporating Script in a View
-View Property Reference
-View XML Reference
-URL Parameters Reference
-SQL Expression Reference
Templates
Components
Data Analysis
Members
Security
Importing
Exporting
FTP
JavaScript
Object Model
Full-Text Search
Domain and Email Hosting
HotBlock Modules
Account Management
Glossary
New Responsive UI Module





DataWeb Help
Support Forums
Tutorial
Script Library
Knowledge Base

Home > Support

DataWeb User's Guide

Converting HTML Pages to Views
You can modify a DataWeb view to look like any HTML page and incorporate data from a data table into it. Since the underlying source for a view file is XHTML (a combination of HTML and XML), you can modify a view's HTML to customize the general formatting for the page, then integrate the XML tags that define how the view displays your data.

The simpler your HTML file, the easier it will be to convert it to a view. To prepare your HTML page to be converted, check that all tags in your HTML are closed properly. Remove any extraneous elements from your page you can always add them in later, once you've successfully converted the page. For example, if your page contains a lot of data that will eventually reside in a data table, you can remove that data from the page. You may want to make these changes on your local computer using your preferred HTML editor, then upload or ftp the file into your web application and rename it with the .view file extension. (Note that if your file does not have the .view file extension, your file will not have view functionality.)

Once your page is in your web application, open it in the DataWeb Designer and display it in source view by clicking on the Source tab. From here you can make the changes necessary to convert your HTML page.

The primary challenge in converting an HTML page to a view is fixing up your HTML to be XHTML-compliant. XHTML is similar to HTML, but there are differences that you may need to be aware of. You can read about these differences in the XHTML 1.0 specification.

When you're editing the source for a view, you can click the Fix XML button to automatically fix much of your non-compliant XHTML for you. If the DataWeb Engine encounters an error that it can't fix, it stops processing the page and displays an error. No further processing occurs until you've fixed that error. Continue clicking the Fix XML button until the page is processed without any errors, then click the Save and Check Syntax button to save your view and check for any errors.

You can convert an HTML page to a view, without affecting any other file in your web application. If you want to use an existing HTML page to provide a consistent look and feel to multiple pages in your web application, you may want to convert your HTML page to a template. Both options are described in the following topics:

Converting an HTML Page to a View

Incorporating Custom HTML into a Template

Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
DataWeb, 720 North 10th Street, A #145, Renton, Washington 98057 *425-583-5970* Fax 484-770-4706* Email Us