Line 245: |
Line 245: |
| | | |
| <hr><hr> | | <hr><hr> |
| + | |
| + | {| class="wikitable" |
| + | ! From forum email |
| + | |+ Considering scripting Memento |
| + | |- bgcolor="#E8F0E8" |
| + | | |
| + | If you want to extend Memento with JavaScript, I suggest you read the wiki, so you can learn how to do it. If you want to use the simplest scripts, you could try using a JavaScript field, but it doesn't have fancy global functions like set() or link() or libByName(), but it does have simple global functions like field(); |
| + | |
| + | If you decide a usually simple JavaScript field is for you, read this page... |
| + | JavaScript field, or... |
| + | https://wiki.mementodatabase.com/index.php/JavaScript_field |
| + | |
| + | If a fancy, probably longer script is what you feel you need, read this page, for starters, since all the other stuff is based on: Memento Javascript Library, or... |
| + | https://wiki.mementodatabase.com/index.php/Memento_JavaScript_Library |
| + | |
| + | If you're going for the fancier stuff & have read the MJL page, you can then branch out into various directions, depending on what you want to do next... |
| + | |
| + | * For a button in the libraries list screen or a button in an edit view card (assuming mobile Memento): Actions, or... |
| + | https://wiki.mementodatabase.com/index.php/Actions |
| + | |
| + | * For a script to run automatically when certain things happen in certain circumstances: Triggers, or... |
| + | https://wiki.mementodatabase.com/index.php/Triggers, or... |
| + | |
| + | ...and... |
| + | Trigger examples: Trigger examples, or... |
| + | https://wiki.mementodatabase.com/index.php/Trigger_examples |
| + | |
| + | The rest of the MJL-based JavaScript pages are for other, less-often-used scripts... |
| + | https://wiki.mementodatabase.com/index.php/Data_Sources, or... |
| + | https://wiki.mementodatabase.com/index.php/How:Write_scripts_in_JavaScript_for_Memento, or... |
| + | https://wiki.mementodatabase.com/index.php/Tips:Using_JavaScript_in_Memento |
| + | |} |
| | | |
| == Work completed == | | == Work completed == |