Molfiles can be submitted as HTML form data using ChemWriter. This technique involves four steps:
- Add an editor instance to the page and assign it a name, e.g., editor.
- Add a hidden text field to the page and assign an id, e.g., molfile.
- Add a submit button to the page with an onClick attribute set to a JavaScript function, e.g., transfer().
- Implement the transfer() function.