CD-442 Part VI . Appendixes Listing 19-11 (continued) (Web site directory)

CD-442 Part VI . Appendixes Listing 19-11 (continued) document.all.counter.innerText = i } // BEGIN UNDO BUFFER CODE // buffer global variables var newRanges = new Array() var origSearchString // store original search string and bookmarks of each replaced range function pushUndoNew(rng, srchString, replString) { origSearchString = srchString rng.moveStart( character , -replString.length) newRanges[newRanges.length] = rng.getBookmark() } // empty array and search string global function clearUndoBuffer() { document.all.counter.innerText = 0 origSearchString = newRanges.length = 0 } // perform the undo function undoReplace() { if (newRanges.length && origSearchString) { for (var i = 0; i < newRanges.length; i++) { rng.moveToBookmark(newRanges[i]) rng.text = origSearchString } document.all.counter.innerText = i clearUndoBuffer() } }

TextRange.findText() Method


Enter a string to search for in the following text:   Case-sensitive   Whole words only

Enter a string with which to replace found text:

TextRange.findText()
You want to have a cheap webhost for your apache application, then check apache web hosting services.

Leave a Reply