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();
}
}
}
Содержание 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...