Triggers provide a mechanism for doing something on a regular timed basis, or when a certain action occurs.triggers Currently only time-based triggers are provided, but in the future we will add new types of triggers performing some action whenever a database is modified, or a template is displayed.
The URL can now also take the form https://www.server.com/folder/file.ext. In this case WebDNA will open a secure SSL connection (on port 443), to 'execute' the trigger.
triggers will not execute until the first hit to the web site has been processed. This usually means that until the first web browser hit from the outside hits a URL ending in ".dna" or one of the other WebDNA-controlled suffixes, no triggers will execute.
|SKU||A unique number making it easier to identify a particular trigger.|
|Trigger||Only TIME is allowed here|
|Param||For TIME triggers, this is a specially-formatted string of numbers and asterisks representing the time the trigger should execute. For example, to cause a trigger to execute 5 seconds after each minute, the text would be|
Y M D H M S (Year Month Day Hour Minute Second)* * * * * 5To cause a trigger to execute at 9:15 PM every day, the text would be* * * 21 15 *
|* or actual year such as 1998||* or month of year such as 6 for June||* or day of month such as 28||* or hour of day such as 23 (11 PM)||* or minute of hour such as 59||* or second of minute such as 15|
|NextExecute||This value gets changed automatically each time a trigger executes. It changes to the date and time of the next scheduled execution of this trigger. If you do not want a trigger to start until a future date, you can preset this to the first date you want it to execute. After that, it is updated automatically.|
|Enable||T or F to enable or disable the trigger.|
|ExecuteURL||Full URL to the template you want executed at trigger time.|
|User||Optional username for this page. This is the same as an authenticated username that the [protect] tag uses. Requiring a username/password enables you to create triggers outside visitors cannot view.|
|Pass||Optional password for this page. This is the same as an authenticated password that the [protect] tag uses. Requiring a username/password enables you to create triggers outside visitors cannot view.|
|WasGood||A string of text returned from the URL indicating the trigger was successfully executed. The trigger looks for this text anywhere in the returned HTML from the URL page. Often <html> is sufficient to tell the trigger that it successfully received the page.|
|TimeoutSeconds||Number of seconds to wait for the URL to complete before giving up and trying again.|
|RetrySeconds||Number of seconds to wait before retrying the trigger.|
DOWNLOAD WEBDNA NOW!
A list of available libraries for WebDNA...Technical Change History
This Technical Change History provides a reverse chronological list of WebDNA changes...Download WebDNA Applications
A compilation of some user's questions...[biotype]
BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...Tips and Tricks
A list of user-submitted tips ...
[shell] is a way to use the command line with your webserver...[cookie]
Cookies are a great way to remember visitors...[setheader]
Changes header values in a shopping cart...triggers
Triggers provide a mechanism for doing something on a regular timed basis...[writefile]
[writefile] functions allows you to perform a wide variety of tasks...[input]