String Manipulation Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

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

Advertisement

• 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
, the selection expands to include the entire
SRC="myImage.gif">
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
Returns
A URL-encoded string.
Example
The following example shows the
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
argument is the string to separate into tokens.
searchString
and
offsetBegin
offsetEnd
argument is a string that contains the unencoded URL that the function encodes.
for
URL.value
"My URL-encoded string"
define the range
SRC="myImage.gif"
tag.
IMG
:
DREAMWEAVER CS3
262
API Reference
within
<IMG

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents