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
Templates
Components
Data Analysis
Members
Security
Importing
Exporting
FTP
JavaScript
Object Model
JavaScript Objects
General Scripting Objects
Data Access Objects
-cmdDelete Object
-cmdInsert Object
-cmdSelect Object
-cmdUpdate Object
-Data Access Method Arguments
-Field Object
-Fields Collection
-Index Object
-Indexes Collection
-previous Object
-record Object
-Resultset Object
-Table Object
-Tables Collection
-TextImporter Object
-Settings Object
-View Object
-Web Object
getPlatformBuild
getPlatformVersion
File Access Objects
Http Client Objects
Security and Membership Objects
Document Object Model (DOM)
Error Descriptions
Object Model Extensions
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

Web Object
The Web Object represents a DataWeb Application. The Web Object provides information about the current application, such the application's name, URL, and the data table contained in the application.

Prototype Properties

name A read only property that provides the name of the current application.
domain A read only property that provides the domain of the current application.
URL A read only property that provides the URL of the current web
email A read only property that provides the email address of the owner of the application.
tables A read only property that provides an object listing all of the data tables within the application.

Prototype Methods

getPlatformBuild Retrieves the build of the platform on which the application is currently running.
getPlatformVersion Retrieves the version of the platform on which the application is currently running.
tables Creates, retrieves and deletes tables in the application.

Examples

The properties of the Web object are demonstrated in the code below. Assume there is an application named "stevehContactManager", owned by "steveh", and which contains six data tables: "AddressBook", "Log", "wscm_companies", "wscm_contacts", "wscm_contentType", "wscm_settings".

    for(var prop in web)
response.write(prop + ":" + web[prop]);
    for(prop in web.tables)
response.write("   " + prop + "<br>");
 
Output:
web.name:stevehcontactmanager
web.domain:DataWeb.com
web.URL:http://stevehcontactmanager.DataWeb.com/
web.email:steveh@DataWeb.com
web.tables:
   AddressBook
   Log
   wscm_companies
   wscm_contacts
   wscm_contactType
   wscm_settings
 

Related Topics

Table Object,  Tables Collection

Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
Email Us