Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
custom:javascript [2019/05/06 02:05] – [Output] Document the PETSCII '\r' vs. Ctrl-A[ thing digital man | custom:javascript [2019/05/30 02:00] – [Invocation] exec_bin can also be used to invoke a JS module 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: | ||
<code baja> | <code baja> | ||
- | exec "? | + | exec "? |
+ | </ | ||
+ | or: | ||
+ | <code baja> | ||
+ | exec " | ||
+ | </ | ||
+ | or: | ||
+ | <code baja> | ||
+ | exec_bin " | ||
</ | </ | ||
- | |||
===== Object Model ===== | ===== Object Model ===== | ||
Line 147: | Line 154: | ||
* [[: | * [[: | ||
- | {{tag> | + | {{tag> |