Application Object
199
Application Object
You can script the Application object’s child objects to perform common tasks and to
create toolbars dynamically.
Properties
ActiveDocument
Syntax
ActiveDocument: object (read-only)
Description
The active document. For details, see
“ActiveDocument Object” on page 230
.
ApplicationType
Syntax
ApplicationType: integer (read-only)
Description
The current application type.
Sample ApplicationType script
//**********************************//
// Tests Application.ApplicationType property
// 0 = HomeSite
// 1 = CF Studio
// 2 = JRun Studio
//********************************//
function Main(){
var iAppType;
var sMessage;
with (Application) {
if (IsColdFusionStudio)
MessageBox(’IsColdFusionStudio returns True’,
’Application Type’, 0)
else
MessageBox(’IsColdFusionStudio returns False’,
’Application Type’, 0);
iAppType = ApplicationType;
switch(iAppType) {
case 0: {
sMessage = ’HomeSite’;
break;
}
case 1: {
sMessage = ’ColdFusion Studio’;
break;
}
case 2: {
sMessage = ’JRun Studio’;
break;
Summary of Contents for ColdFusion Server 5
Page 18: ...xviii About This Book...
Page 26: ...8 Chapter 1 Setting Up the Product...
Page 42: ...24 Chapter 2 Configuring Browsers and Servers...
Page 60: ...42 Chapter 3 Exploring the Workspace...
Page 100: ...82 Chapter 6 Editing Pages...
Page 126: ...108 Chapter 7 Using Web Development Languages...
Page 212: ...194 Chapter 13 Customizing the Development Environment...
Page 320: ...302 Glossary...