Triggers: Difference between revisions

Jump to navigation Jump to search
120 bytes added ,  10 May 2021
m
no edit summary
mNo edit summary
mNo edit summary
(2 intermediate revisions by the same user not shown)
Line 217: Line 217:


=== Writing a Trigger Script ===
=== Writing a Trigger Script ===
Trigger scripts are JavaScripts. See '''''[[#JavaScript links|links to JavaScript documentation]]''''' below.
Trigger scripts are in the JavaScript language. See '''''[[#JavaScript links|links to JavaScript documentation]]''''' below.


; Event & Phase: Make sure to understand the Event & Phase you are scripting. This will dictate a number of things, such as whether data is present already or not, whether ''cancel()'' makes sense or not, whether the user is waiting for script execution or not, and so on.
; Event & Phase: Make sure to understand the Event & Phase you are scripting. This will dictate a number of things, such as whether data is present already or not, whether ''cancel()'' makes sense or not, whether the user is waiting for script execution or not, and so on.
Line 240: Line 240:
; [[Memento JavaScript Library]]: Memento JavaScript functions & objects<br/>
; [[Memento JavaScript Library]]: Memento JavaScript functions & objects<br/>
; [[Trigger Examples]]: Examples of trigger scripts for common needs
; [[Trigger Examples]]: Examples of trigger scripts for common needs
; [[How:Write scripts in JavaScript for Memento]]: Guidelines for writing JavaScript scripts for Memento


[[Category:Spec]]
[[Category:Spec]]

Navigation menu