ChemWriter Example - Send a Molfile to a Server

Molfiles can be submitted as HTML form data using ChemWriter. This technique involves four steps:

  1. Add an editor instance to the page and assign it a name, e.g., editor.
  2. Add a hidden text field to the page and assign an id, e.g., molfile.
  3. Add a submit button to the page with an onClick attribute set to a JavaScript function, e.g., transfer().
  4. Implement the transfer() function.