Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
dev:translator_best_practices [2008/11/11 05:34] jonlesserdev:translator_best_practices [2008/11/11 05:38] jonlesser
Line 1: Line 1:
-When writing translators, using the [[/debug_output|debug console]] is essential. Any output from the translator can be dumped to the debug console using <code>Zotero.Utilities.debug("hello world!");</code>+When writing translators, using the [[/support/debug_output|debug console]] is essential. Any output from the translator can be dumped to the debug console using <code>Zotero.Utilities.debug("hello world!");</code>
  
 The functions ''Zotero.Utilities.HTTP.doGet'' and ''Zotero.Utilities.processDocuments'' run asynchronously.  In order to allow them to complete before moving along, follow either function with ''Zotero.wait()'' and include ''Zotero.done()'' as the onDone in order to signal the translator that it has completed its asynchronous operations. The functions ''Zotero.Utilities.HTTP.doGet'' and ''Zotero.Utilities.processDocuments'' run asynchronously.  In order to allow them to complete before moving along, follow either function with ''Zotero.wait()'' and include ''Zotero.done()'' as the onDone in order to signal the translator that it has completed its asynchronous operations.
dev/translator_best_practices.txt · Last modified: 2017/11/12 19:53 by 127.0.0.1