Application Object
201
Sample CurrentView script
//**********************************************************//
// This script switches the views inside the application
//*********************************************************//
function Main () {
var sMessage;
with (Application) {
CurrentView = 1;
sMessage = "You are now in Edit View of your " +
VersionText;
MessageBox (sMessage, VersionText, 0);
CurrentView = 2;
sMessage = "You are now in Browse View of your " +
VersionText;
MessageBox (sMessage, VersionText, 0);
CurrentView = 3;
sMessage = "You are now in Help View of your " +
VersionText;
MessageBox (sMessage, VersionText, 0);
}
}
DocumentCache
Syntax
DocumentCache: array of objects (read-only)
Description
For details, see
“DocumentCache Object” on page 241
.
Example
function Main(){
with (Application){
// Save the first document
if (DocumentCache(0).Modified){
DocumentIndex = 0;
ActiveDocument.Save();
}
}
}
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...