It would be interesting to know more about those code collisions. We don't
want to have to use iFrames. I'm aware of several issues with Java2Script,
and I've probably introduced a few with JSmol as well.
Otis, could you do us a favor and combine these in one JS file?
<script type="text/javascript" src="prototype-min.js
<view-source:http://chemagic.com/ketcher/prototype-min.js>"></script>
<script type="text/javascript" src="raphael.js
<view-source:http://chemagic.com/ketcher/raphael.js>"></script>
<script type="text/javascript" src="base64.js
<view-source:http://chemagic.com/ketcher/base64.js>"></script>
<script type="text/javascript" src="util/common.js
<view-source:http://chemagic.com/ketcher/util/common.js>"></script>
<script type="text/javascript" src="util/vec2.js
<view-source:http://chemagic.com/ketcher/util/vec2.js>"></script>
<script type="text/javascript" src="util/set.js
<view-source:http://chemagic.com/ketcher/util/set.js>"></script>
<script type="text/javascript" src="util/map.js
<view-source:http://chemagic.com/ketcher/util/map.js>"></script>
<script type="text/javascript" src="util/pool.js
<view-source:http://chemagic.com/ketcher/util/pool.js>"></script>
<script type="text/javascript" src="chem/element.js
<view-source:http://chemagic.com/ketcher/chem/element.js>"></script>
<script type="text/javascript" src="chem/struct.js
<view-source:http://chemagic.com/ketcher/chem/struct.js>"></script>
<script type="text/javascript" src="chem/molfile.js
<view-source:http://chemagic.com/ketcher/chem/molfile.js>"></script>
<script type="text/javascript" src="chem/sgroup.js
<view-source:http://chemagic.com/ketcher/chem/sgroup.js>"></script>
<script type="text/javascript" src="chem/struct_valence.js
<view-source:http://chemagic.com/ketcher/chem/struct_valence.js>"></script>
<script type="text/javascript" src="chem/dfs.js
<view-source:http://chemagic.com/ketcher/chem/dfs.js>"></script>
<script type="text/javascript" src="chem/cis_trans.js
<view-source:http://chemagic.com/ketcher/chem/cis_trans.js>"></script>
<script type="text/javascript" src="chem/stereocenters.js
<view-source:http://chemagic.com/ketcher/chem/stereocenters.js>"></script>
<script type="text/javascript" src="chem/smiles.js
<view-source:http://chemagic.com/ketcher/chem/smiles.js>"></script>
<script type="text/javascript" src="rnd/events.js
<view-source:http://chemagic.com/ketcher/rnd/events.js>"></script>
<script type="text/javascript" src="rnd/visel.js
<view-source:http://chemagic.com/ketcher/rnd/visel.js>"></script>
<script type="text/javascript" src="rnd/restruct.js
<view-source:http://chemagic.com/ketcher/rnd/restruct.js>"></script>
<script type="text/javascript" src="rnd/restruct_rendering.js
<view-source:http://chemagic.com/ketcher/rnd/restruct_rendering.js>"></script>
<script type="text/javascript" src="rnd/render.js
<view-source:http://chemagic.com/ketcher/rnd/render.js>"></script>
<script type="text/javascript" src="rnd/editor.js
<view-source:http://chemagic.com/ketcher/rnd/editor.js>"></script>
<script type="text/javascript" src="rnd/elem_table.js
<view-source:http://chemagic.com/ketcher/rnd/elem_table.js>"></script>
<script type="text/javascript" src="rnd/rgroup_table.js
<view-source:http://chemagic.com/ketcher/rnd/rgroup_table.js>"></script>
<script type="text/javascript" src="ui/ui.js
<view-source:http://chemagic.com/ketcher/ui/ui.js>"></script>
<script type="text/javascript" src="ui/actions.js
<view-source:http://chemagic.com/ketcher/ui/actions.js>"></script>
<script type="text/javascript" src="reaxys/reaxys.js
<view-source:http://chemagic.com/ketcher/reaxys/reaxys.js>"></script>
<script type="text/javascript" src="ketcher.js
<view-source:http://chemagic.com/ketcher/ketcher.js>"></script>
On Fri, Nov 30, 2012 at 7:54 AM, Otis Rothenberger <[email protected]>wrote:
> On Safari, things get real slow if I have the error console on. When I
> turn it off, JSmol response quickly.
>
> I had a real problem trying to make these two applications work on the
> same page. I kept getting apparent code collisions with the two
> applications in the same page. Consequently, I put Ketcher in its own
> iframe. I also use absolute positioning of all containers. This was
> probably asking for cross browser/platform issues. I guess it could also
> affect response.
>
> I'll keep working on it.
>
> Otis
>
> --
> Otis Rothenberger
> [email protected]
> http://chemagic.com
>
>
>
>
> On Nov 30, 2012, at 8:11 AM, Mikko Rantalainen wrote:
>
> > Otis Rothenberger, 2012-11-30 06:25 (Europe/Helsinki):
> >> OK, here you go:
> >> http://chemagic.com/draw.htm
> >>
> >> It works on Mac FF, Chrome, and Safari (including iPad). I'm interested
> >> in how it works on Windows.
> >>
> >> The Get InChiKey button is there because we're using it to grade
> >> quizzes. Both buttons use Resolver, so clicking the Get InChIKey button
> >> is a quick way to see if Resolver is up.
> >
> > Very nice demo!
> >
> > Is it just me or is this super-heavy in CPU usage for anybody else? The
> > Jmol view is barely usable (framerate is probably around 1-2 fps) on
> > dual core 3GHz desktop computer running Ubuntu 12.04 LTS 64 bit and
> > Firefox 17.0.
> >
> > --
> > Mikko
> >
> >
> >
> ------------------------------------------------------------------------------
> > Keep yourself connected to Go Parallel:
> > TUNE You got it built. Now make it sing. Tune shows you how.
> >
> http://goparallel.sourceforge.net_______________________________________________
> > Jmol-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
>
>
> ------------------------------------------------------------------------------
> Keep yourself connected to Go Parallel:
> TUNE You got it built. Now make it sing. Tune shows you how.
> http://goparallel.sourceforge.net
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users