> Hopefully the programmers in JCP developer team will implement a fix
> for this and get the Javascript interface working soon; I know that
> Stefan is working on this, after my request. The commands are
> getSmiles()
> and
> getSmilesChiral()
>
> * In fact, I am interested in the chiral smiles, so I gave up trying
> to use the javascript call, but if you are OK with the simple smiles,
> maybe you can use the getSmiles() call successfully.
To clarify this a bit: The JS calls work, but give a different smiles from the
one in the menu (due to inclusion of hydrogens or so). Different means the
order of atoms is different, it should still be a valid smiles. This has been
fixed, but right now the applet does not build. I can do an applet, but this
will have everything in one file and might be slow to load. I am trying to
get the applet build working. If so, there should be a new release soon. But
the build problem is a bit tricky...
>
> >or do I need
> > to make some sort of plugin to add a button to JChemPaint which loads
> > http://www.server.com/search.py?Q="<smiles>"; ?
>
> Can't help you here, don't know about plugins.
The easiest way would be to have a form with http://www.server.com/search.py
as action url, have a field in the form called Q and attach JavaScript to the
button reading the smiles from the applet and putting it into the field.
HTH
Stefan

Hi Nick
I've being working in something related during the last month(s), so
I hope I can give you some light.
> I would like to use a JChemPaint applet for the users who don't find
> typing SMILES comes naturally. What is the best way to do this? Can
> Javascript extract the SMILES from the current molecule?
This should be possible, but unfortunately is not working properly*
right now (I am using version 2.3.2 of the applet). The workaround I
found is to instruct the user to use JCP Editor menu, Report >
Generate SMILES, copy its output and paste it into a text box in the
page, whose value is then sent out.
Hopefully the programmers in JCP developer team will implement a fix
for this and get the Javascript interface working soon; I know that
Stefan is working on this, after my request. The commands are
getSmiles()
and
getSmilesChiral()
* In fact, I am interested in the chiral smiles, so I gave up trying
to use the javascript call, but if you are OK with the simple smiles,
maybe you can use the getSmiles() call successfully.
>or do I need
> to make some sort of plugin to add a button to JChemPaint which loads
> http://www.server.com/search.py?Q="<smiles>"; ?
Can't help you here, don't know about plugins.
If you need some more details, please feel free to contact me.

Hello,
I currently have an experimental substructure search interface to a
repository which uses the OpenBabel fastsearch and so needs as SMILES
string for the search.
I would like to use a JChemPaint applet for the users who don't find
typing SMILES comes naturally. What is the best way to do this? Can
Javascript extract the SMILES from the current molecule, or do I need
to make some sort of plugin to add a button to JChemPaint which loads
http://www.server.com/search.py?Q="<smiles>"; ?
Any help would be appreciated, I couldn't find any documentation for
the plugin architecture other than it goes in the /plugins dir!
Thanks,
Nick England