Technical References - [ddeconnect]

numero = 288
interpreted = N
texte = [ddeconnect Parameters]DDESend Contexts[/ddeconnect] Connects to a DDE server program on the local machine. To embed the results of a DDE command into one of your pages, put a DDEConnect context into a template, and put [DDESend] contexts inside of that. The DDESend steps contained inside the context are executed, and any returned value is displayed in place of the context. Any [xxx] tags inside the context are first substituted for their real values before the DDE is executed. DDEConnect does nothing by itself. You must insert one or more [ddesend] contexts inside it for it to work. DDEConnect establishes a connection to the DDE server program, and provides an environment for the DDESend contexts to do their work and return text results. Example:
[ddeconnect program=PCAuthorize&topic=GetBatches][ddesend]Tela00001031 1[/ddesend][/ddeconnect]
In this example, the DDE command "GetBatches from PCAuthorize" is executed, and the results (a listing of all the batch information for batch #1) is displayed. Notice that the whitespace between "Tela00001031" and "1" is actually a tab character, which is part of the PCAuthorize specification.

DDE has complete access to all DDE-aware programs on your web server. You can write a DDE context that can do damage to the machine or retrieve secret information. However, remote visitors to your web site have no way of executing their own DDE contexts remotely. They can only execute DDE commands inside a template file you have saved on your web server's hard disk.

ParameterDescription
program
(Required) Name of the DDE server program to connect to, such as PCAuthorize
topic
(Required) Name of the DDE topic on which to send messages, such as GetBatches. Defined by the DDE server program; refer to that program's documentation for more information.
[ddeconnect Parameters]DDESend Contexts[/ddeconnect]
Connects to a DDE server program on the local machine.
To embed the results of a DDE command into one of your pages, put a DDEConnect context into a template, and put [ddesend] contexts inside of that. The DDESend steps contained inside the context are executed, and any returned value is displayed in place of the context. Any [xxx] tags inside the context are first substituted for their real values before the DDE is executed.

DDEConnect does nothing by itself. You must insert one or more [ddesend] contexts inside it for it to work. DDEConnect establishes a connection to the DDE server program, and provides an environment for the DDESend contexts to do their work and return text results.

Example:

[ddeconnect program=PCAuthorize&topic=GetBatches]
[ddesend]Tela00001031 1[/ddesend]
[/ddeconnect]

In this example, the DDE command "GetBatches from PCAuthorize" is executed, and the results (a listing of all the batch information for batch #1) is displayed. Notice that the whitespace between "Tela00001031" and "1" is actually a tab character, which is part of the PCAuthorize specification.

DDE has complete access to all DDE-aware programs on your web server. You can write a DDE context that can do damage to the machine or retrieve secret information. However, remote visitors to your web site have no way of executing their own DDE contexts remotely. They can only execute DDE commands inside a template file you have saved on your web server's hard disk.


ParameterDescription
program
(Required) Name of the DDE server program to connect to, such as PCAuthorize
topic
(Required) Name of the DDE topic on which to send messages, such as GetBatches. Defined by the DDE server program; refer to that program's documentation for more information.

DOWNLOAD WEBDNA NOW!

Top Articles:

Download WebDNA Applications

WebDNA applications...

WebDNA Libraries

A list of available libraries for WebDNA...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

WebDNA Modules

A list of the currently available modules...

F.A.Q

A compilation of some user's questions...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

Related Readings:

[getchars]

Extracts a portion of the text (also known as substring or Mid$)...

[SQL]

Performs a SQL statement on an ODBC data source...

[loop]

Loops through the enclosing text the specified number of times...

[flushdatabases]

...

[username]

Using [password] and [username] is an easy was to show the browser login dialog box...

[date]

Putting [date] in your template displays the current date as defined by the clock on your web server...