MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Specifikace Strana 585

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 692
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 584
585
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
This function takes a string and returns a URL-encoded string by replacing all spaces and special
characters with specified entities.
Arguments
stringToConvert
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
searchString is the string to be separated into tokens.
separatorCharacters is the character or characters that signifies the end of a token.
Separator characters in quoted strings are ignored. If
separatorCharacters contains a space,
all white-space characters (such as tabs) are treated as separator characters, as if they are
explicitly specified. Two or more consecutive white space characters are treated as a single
separator.
Returns
An array of token strings.
Example
dreamweaver.getTokens(’foo("my arg1", 34)’, ’(),’) returns the tokens:
foo
"my arg 1"
34
Zobrazit stránku 584
1 2 ... 580 581 582 583 584 585 586 587 588 589 590 ... 691 692

Komentáře k této Příručce

Žádné komentáře