MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 464

Director scripting reference
Table of Contents

Advertisement

postNetText
Usage
postNetText(url, propertyList {,serverOSString} {,serverCharSetString})
postNetText(url, postText {,serverOSString} {,serverCharSetString})
Description
Command; sends a
This command is similar to
returned by
netTextResult(netID)
netError(netID)
The optional parameters may be omitted without regard to position.
This command also has an additional advantage over
can be arbitrarily long, whereas the
4K, depending on the browser).
Note: If you use
postNetText
from, the movie will display a security alert when playing back in Shockwave Player.
To see an example of
the Learning/Lingo folder inside the Director application folder.
Parameters
Required. Specifies the URL to send the
url
propertyList
property list is used instead of a string, the information is sent in the same way a browser posts an
HTML form, with
within a Director title. Property names correspond to HTML form field names and property
values to field values.
The property list can use either strings or symbols as the property names. If a symbol is used, it is
automatically converted to a string without the # at the beginning. Similarly, a numeric value is
converted to a string when used as the value of a property.
Note: If a program uses the alternate form—a string instead of property list—the string postText is sent
to the server as an HTTP POST request using MIME type "text/plain." This will be convenient for
some applications, but is not compatible with HTML forms posting. PHP scripts, for example, should
always use a property list.
serverOSString
any carriage returns in the
For most applications, this setting is unnecessary because line breaks are usually not used in
form responses.
serverCharSetString
system. Its possible settings are
from Shift-JIS to the named character set. Returned data is handled exactly as by
(converted from the named character set to Shift-JIS). If you use
the local character set is not translated; the results sent back by the server are translated as they are
for
getNetText()
provides no translation for posting or results.
464
Chapter 12: Methods
request to a URL, which is an HTTP URL, with specified data.
POST
getNetText()
once
is 0, or okay.
getNetText()
to post data to a domain different from the one the movie is playing
used in a completed movie, see the Forms and Post movie in
postNetText
or
Required. Specifies the data to send with the request. When a
postText
. This facilitates the construction and posting of form data
METHOD=POST
Optional. Defaults to
argument into those used on the server to avoid confusion.
postText
Optional. Applies only if the user is running on a Shift-JIS (Japanese)
,
"JIS"
.
is the default if
"ASCII"
. As with
getNetText()
netDone(netID)
getNetText()
query is limited to the length of a URL (1K or
request to.
POST
but may be set to
UNIX
,
, and
"EUC"
"ASCII"
serverCharSetString
, the server's response is
becomes 1, and if
: a
postNetText()
or
and translates
Windows
Mac
. Posted data is converted
"AUTO"
getNetText()
, the posted data from
"AUTO"
is omitted.
"ASCII"
query

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents