Adobe 38040334 - Dreamweaver CS3 User Manual page 400

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

dreamweaver.setUpFind()
Availability
Dreamweaver 3.
Description
Prepares for a text or HTML source search by defining the search parameters for a subsequent
operation.
weaver.findNext()
Arguments
searchObject
The
argument is an object for which the following properties can be defined:
searchObject
• The
is the text for which to search.
searchString
• The
property is a Boolean value that indicates whether to search the HTML source.
searchSource
• The
property, which is optional, is a Boolean value that indicates whether the search is case-
{matchCase}
sensitive. If this property is not explicitly set, it defaults to
• The
{ignoreWhitespace}
differences should be ignored. The
property is
larExpressions
• The
{useRegularExpressions}
uses regular expressions. If this property is not explicitly set, it defaults to a value of
Returns
Nothing.
Example
The following code demonstrates three ways to create a
var searchParams;
searchParams.searchString = 'bgcolor="#FFCCFF"';
searchParams.searchSource = true;
dreamweaver.setUpFind(searchParams);
var searchParams = {searchString: 'bgcolor="#FFCCFF"', searchSource: true};
dreamweaver.setUpFind(searchParams);
dreamweaver.setUpFind({searchString: 'bgcolor="#FFCCFF"', searchSource: ¬true});
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
or
weaver.replace()
dreamweaver.replaceAll()
Arguments
searchObject
property, which is optional, is a Boolean value that indicates whether white space
ignoreWhitespace
, and
if the
true
true
useRegularExpressions
property is a Boolean value that indicates whether the
searchObject
operation.
.
false
property defaults to
false
property is
object:
DREAMWEAVER CS3
API Reference
dream-
if the value of the
useRegu-
false.
property
searchString
.
false
dream-
395

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents