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
translator_tips_tricks [2006/11/27 07:20] seantranslator_tips_tricks [2007/01/08 09:12] sean
Line 3: Line 3:
  
  
-  * When writing translators, debugging via the console is essential.  To debug via the console, start Firefox from the command line (cmd.exe in Windows, Terminal.app in MacOS).  Any output from the translator can be dumped to the console using <code>Zotero.Utilities.debug("hello world!");</code>+  * When writing translators, debugging via the console is essential.  To debug via the console, start Firefox from the command line (cmd.exe in Windows, Terminal.app in MacOS).  Any output from the translator can be dumped to the console using <code>Zotero.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_tips_tricks.txt · Last modified: 2017/11/12 19:53 by 127.0.0.1