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;
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...