214
Chapter 14 Scripting the Visual Tools Object Model
}
}
}
HTMLGetAttribute
Syntax
HTMLGetAttribute(const wsInTag, wsAttr: WideString): WideString;
Description
Returns the value for a particular attribute of a tag. For example,
HTMLGetAttribute("<TABLE WIDTH=100>", "WIDTH");
returns 100.
Example
function Main(){
var sWidth;
with (Application){
// Get width attribute of a table tag
sWidth = HTMLGetAttribute("<table width=100>", "width");
}
}
HTMLGetTitle
Syntax
HTMLGetTitle(const wsFile: WideString): WideString;
Description
Returns the contents of an HTML file’s
title
tag. This only operates on local files.
Example
function Main() {
Var sFile;
Var sTitle;
sFile = "C:\\Temp\index.html";
with (Application) {
sTitle = HTMLGetTitle (sFile);
// Store the contents inside <INDEX> in sTitle
}
}
InputBox
Syntax
InputBox(const wsCaption, wsPrompt, wsDefault: WideString): WideString;
Description
Displays a dialog box for obtaining user input.
Example
function Main() {
Var sInput;
Var sOutput;
Содержание 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...