Signals discusses the art and business of scientific software with an emphasis on web and mobile technologies.

How to Create A Simple Structure Search Form with ChemWriter and ChemSpider [Video]

A frequently asked question from new ChemWriter developers is how to submit chemical structures to a server. This step-by-step video tutorial shows how using ChemSpider.

If you’re running your own chemical database for which you’d like to enable structure search, the principles described here are essentially the same:

  1. Create a form with a hidden text field.
  2. To the submit button, attach an onclick event handler that invokes a custom JavaScript function.
  3. Implement the custom function such that it transfers a molfile from ChemWriter to the hidden text field.

Source Code

Resources

  1. ChemWriter Homepage
  2. ChemWriter Download
  3. Full Example: Send a Molfile to a Server
  4. ChemSpider Web API Home
May 25th, 2011