Adobe 38040334 API Reference - Page 267
String manipulation functions, dreamweaver.doURLEncoding, dreamweaver.getTokens
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 267 highlights
DREAMWEAVER CS3 262 API Reference • These arguments are the opening and closing points, respectively, for the new selection, which is expressed as byte offsets into the document's source code. If the two numbers are the same, the new selection is an insertion point. If the new selection is not a valid HTML selection, it is expanded to include the characters in the first valid HTML selection. For example, if offsetBegin and offsetEnd define the range SRC="myImage.gif" within , the selection expands to include the entire IMG tag. Returns Nothing. String manipulation functions String manipulation functions help you get information about a string as well as convert a string from Latin 1 encoding to platform-native encoding and back. dreamweaver.doURLEncoding() Availability Dreamweaver 1. Description Takes a string and returns a URL-encoded string by replacing all the spaces and special characters with specified entities. Arguments stringToConvert • The stringToConvert argument is a string that contains the unencoded URL that the function encodes. Returns A URL-encoded string. Example The following example shows the URL.value for "My URL-encoded string": var URL = dw.doURLEncoding(theURL.value); returns "My%20URL-encoded%20string" dreamweaver.getTokens() Availability Dreamweaver 1. Description Accepts a string and splits it into tokens. Arguments searchString, separatorCharacters • The searchString argument is the string to separate into tokens.