Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dev:client_coding:javascript_api [2019/01/22 00:34] – [Zotero JavaScript API] dstillman | dev:client_coding:javascript_api [2019/01/22 00:42] – [Helpful Resources] dstillman | ||
---|---|---|---|
Line 11: | Line 11: | ||
Note that the (mostly user-contributed) documentation of the JavaScript API is not comprehensive. If you use the JavaScript API in ways beyond what's described here, please consider expanding this wiki page. | Note that the (mostly user-contributed) documentation of the JavaScript API is not comprehensive. If you use the JavaScript API in ways beyond what's described here, please consider expanding this wiki page. | ||
- | ===== Helpful Resources ===== | ||
- | For this section, you’ll likely find the following helpful: | + | ===== Running Ad Hoc JavaScript in Zotero ===== |
- | * A basic understanding of how to create a Firefox extension | + | Zotero |
- | * [[http:// | + | |
- | * [[https:// | + | |
- | * A decent grasp of object-oriented JavaScript | + | |
- | * [[http:// | + | |
- | * [[http:// | + | |
- | + | ||
- | ===== An Easy Debugging Environment ===== | + | |
- | + | ||
- | Various Firefox extensions create servers within Firefox that expose the internal Firefox environment, | + | |
- | + | ||
- | * [[https:// | + | |
- | * [[http:// | + | |
- | * [[http:// | + | |
- | * **Potential MozRepl Problems**: Longer scripts can time out non-deterministically. A solution to this is to either send the code to the terminal application in smaller sized chunks, or to keep pasting the code in until it works. | + | |
- | + | ||
- | Perl programmers should be aware of the [[http:// | + | |
+ | - In the Advanced pane of the Zotero preferences, | ||
+ | - In the Tools menu, select Run JavaScript. Open the Error Console, which also appears in Tools, will also be helpful. | ||
+ | - In the window that opens, enter JavaScript in the Code textbox and click Run or press Cmd-R/ | ||
+ | (Before Zotero 5.0.61 is released, you'll need to install the [[: | ||
===== The Zotero Object ==== | ===== The Zotero Object ==== | ||