Yahoo free web hosting - CD-444 Part VI . Appendixes undo buffer has

CD-444 Part VI . Appendixes undo buffer has data stored in it, the function loops through the array of bookmarks and replaces the bookmarked text with the old string. The benefit of using the bookmarks rather than using the replacement function again is that only those ranges originally affected by the search-and-replace operation are touched in the undo operation. For example, in this document if you replace a case-sensitive states with States two replacements are performed. At that point, however, the document has four instances of States, two of which existed before. Redoing the replacement function by inverting the search and replace strings would convert all four back to the lowercase version not the desired effect. getBookmark() NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example Listing 19-11 earlier in this chapter shows how the getBookmark() method is used to preserve specifications for text ranges so that they can be called upon again to be used to undo changes made to the text range. The getBookmark() method is used to save the snapshots, while the moveToBookmark() method is used during the undo process. inRange(otherRangeRef) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example Use The Evaluator (Chapter 13) to see the inRange()method in action. The following statements generate two distinct text ranges, one for the myP paragraph element and the other for the myEM element nested within. a = document.body.createTextRange() a.moveToElementText(myP) b = document.body.createTextRange() b.moveToElementText(myEM) TextRange.inRange()
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.

Leave a Reply