Specifications

463
dreamweaver.setUpFindReplace()
Availability
Dreamweaver 3
Description
Prepares for a text or HTML source search by defining the search parameters and the scope for a
subsequent
dreamweaver.replace() or dw.replaceAll() operation.
Arguments
searchObject
searchObject
is an object for which the following properties can be defined:
searchString is the text for which to search.
replaceString is the text with which to replace the selection.
searchSource is a Boolean value that indicates whether to search the HTML source.
{matchCase} is a Boolean value that indicates whether the search is case-sensitive. If this
property is not explicitly set, it defaults to
false.
{ignoreWhitespace} is a Boolean value that indicates whether white space differences should
be ignored.
ignoreWhitespace defaults to false if useRegularExpressions is true and
true if useRegularExpressions is false.
{useRegularExpressions} is a Boolean value that indicates whether the searchString uses
regular expressions. If this property is not explicitly set, it defaults to
false.
Returns
Nothing.
Example
The following code demonstrates three ways to create a searchObject object:
var searchParams;
searchParams.searchString = ’bgcolor="#FFCCFF"’;
searchParams.replaceString = ’bgcolor="#CCFFCC"’;
searchParams.searchSource = true;
dreamweaver.setUpFindReplace(searchParams);
var searchParams = {searchString: ’bgcolor="#FFCCFF"’, replaceString:
’bgcolor="#CCFFCC"’, searchSource: true};
dreamweaver.setUpFindReplace(searchParams);
dreamweaver.setUpFindReplace({searchString: 'bgcolor="#FFCCFF"', ¬
replaceString: 'bgcolor="#CCFFCC"', searchSource: true});
dreamweaver.showFindDialog()
Availability
Dreamweaver 3
Description
Opens the Find dialog box.
Arguments
None.