G-L > LoadVars.send |  |

LoadVars.send

LoadVars, LoadVars.send, send

Availability

Flash Player 6.

Usage

`loadVarsObject``.send(``url` `[,``target, method``] )`

Parameters

`loadVarsObject` The LoadVars object to upload variables from.

`url` The URL to upload variables to.

`target` The browser frame window in which any response will be displayed.

`method` The "`GET`"`` or "`POST`" method of the `HTTP` protocol.

Returns

A string.

Description

Method; sends the variables in the `myLoadVars` object to the specified URL. All enumerable variables in the `myLoadVars` object are concatenated into a string in the application/x-www-urlform-encoded format by default, and the string is posted to the URL using the HTTP POST method. This is the same format used by the `loadVariables` action. The MIME content type sent in the HTTP request headers is the value of `myLoadVars.contentType`, or the default application/x-www-urlform-encoded. The method "`POST`" is used unless "`GET`" is specified.

If the `target` parameter is specified, the server's response is displayed in the browser frame window named target. If the `target` parameter is omitted, the server's response is discarded.

This method is similar to the `XML.send` method of the XML object.