
Application Object
229
Sample toolbar script 2
//*************************************************************//
// This script creates a toolbar which is capable of executing
// all of the scripts contained in the Document Cache
//*************************************************************//
function Main () {
var sToolBarName;
var Result;
var count;
var fname;
var fnamepath;
with (Application) {fnamepath
sToolBarName = InputBox (VersionText, "Enter the Toolbar name.",
"MyToolbar");
while (ToolbarExists(sToolBarName) != 0){
sToolBarName = InputBox (VersionText, "Please chose another
name.", "MyToolbar");
}
CreateToolbar (sToolBarName);
ShowToolBar(sToolBarName);
count = 0;
while (count <= (DocumentCount-1)){
fnamepath = DocumentCache(count).FileName
fname = ExtractFileName(fnamepath);
AddScriptToolbutton (sToolBarName, fnamepath, fname, count,
"");
count
++;
}
}
}
Содержание 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...