Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
custom:javascript [2019/05/06 02:05] – [See Also] digital man | custom:javascript [2019/05/27 21:35] – [Integration] renamed to Invocation and provided more details. digital man | ||
---|---|---|---|
Line 39: | Line 39: | ||
Modified stock '' | Modified stock '' | ||
- | ===== Integration | + | ===== Invocation |
- | JavaScript files can be executed from: | + | JavaScript files can be executed |
* [[: | * [[: | ||
- | as a timed event, external program (door), login/ | + | as a timed event, external program (door), login/ |
- | basically anywhere a Baja module or executable can be launched | + | ((basically anywhere a Baja module or native or MS-DOS |
* [[: | * [[: | ||
- | dynamically generates HTML files, | + | dynamically generates |
see '' | see '' | ||
* [[: | * [[: | ||
Line 57: | Line 57: | ||
inbound mail processors may be written in JavaScript, | inbound mail processors may be written in JavaScript, | ||
see '' | see '' | ||
- | * [[:util:jsexec|JSexec]] | + | * [[: |
- | some script files may be executed outside of Synchronet (e.g. as a CGI script or daemon) using jsexec, | + | some script files may be executed outside of Synchronet (e.g. as a CGI script or daemon) using [[util: |
examples: '' | examples: '' | ||
- | From the Terminal Server, a JavaScript file is executed on a native command-line by placing a question mark (''?'' | + | From the Terminal Server, a JavaScript file is executed on a native command-line by placing a question mark (''? |
From within a Baja module, a JavaScript file may be executed using the following Baja code: | From within a Baja module, a JavaScript file may be executed using the following Baja code: | ||
Line 67: | Line 67: | ||
exec "? | exec "? | ||
</ | </ | ||
+ | or: | ||
+ | <code baja> | ||
+ | exec " | ||
+ | </ | ||
===== Object Model ===== | ===== Object Model ===== | ||