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:
- Create a form with a hidden text field.
- To the submit button, attach an onclick event handler that invokes a custom JavaScript function.
- Implement the custom function such that it transfers a molfile from ChemWriter to the hidden text field.