Find/replace functions
385
Returns
Nothing.
Example
The first line of the following example sets up a tag search and specifies that the scope of the
search should be the current document. The second line performs the search operation.
dreamweaver.setUpComplexFind('<dwquery><queryparams matchcase="false" ¬
ignorewhitespace="true" useregexp="false"/><find>¬
<qtag qname="a"><qattribute qname="href" qcompare="="
qvalue="#">¬
</qattribute><qattribute qname="onMouseOut" qcompare="=" qvalue="" ¬
qnegate="true"></qattribute></qtag></find></dwquery>');
dw.findNext();
dreamweaver.setUpComplexFindReplace()
Availability
Dreamweaver 3.
Description
Prepares for an advanced text or tag search by loading the specified XML query.
Arguments
xmlQueryString
•
The
xmlQueryString
argument is a string of XML code that begins with the
dwquery
tag and
ends with the
/dwquery
tag. (To get a string of the proper format, set up the query in the Find
dialog box, click the Save Query button, open the query file in a text editor, and copy
everything from the beginning of the
dwquery
tag to the end of the
/dwquery
tag.)
Returns
Nothing.
Example
The first statement in the following example sets up a tag search and specifies that the scope of the
search should be four files. The second statement performs the search and replace operation.
dreamweaver.setUpComplexFindReplace('<dwquery><queryparams ¬
matchcase="false" ignorewhitespace="true" useregexp="false"/>¬
<find><qtag qname="a"><qattribute qname="href" qcompare="=" ¬
qvalue="#"></qattribute><qattribute qname="onMouseOut" ¬
qcompare="=" qvalue="" qnegate="true"></qattribute></qtag>¬
</find><replace action="setAttribute" param1="onMouseOut" ¬
param2="this.style.color='#000000';this.style.¬
fontWeight='normal'"/></dwquery>');
dw.replaceAll();
000_DW_API_Print.book Page 385 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...