that would do it.


On Fri, Nov 30, 2012 at 11:21 AM, Paul Pillot <paul.pillot@ac-orleans-tours.fr> wrote:
prototypejs defines a global $() object as well as jquery.
ketcher relies on prototypejs and jsmol on jquery
a conflict probably lies there....
-Paul

Le 30 nov. 2012 à 16:30, Robert Hanson a écrit :

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"></script>
        <script type="text/javascript" src="raphael.js"></script>
        <script type="text/javascript" src="base64.js"></script>
        <script type="text/javascript" src="util/common.js"></script>
        <script type="text/javascript" src="util/vec2.js"></script>
        <script type="text/javascript" src="util/set.js"></script>
        <script type="text/javascript" src="util/map.js"></script>
        <script type="text/javascript" src="util/pool.js"></script>
        <script type="text/javascript" src="chem/element.js"></script>
        <script type="text/javascript" src="chem/struct.js"></script>
        <script type="text/javascript" src="chem/molfile.js"></script>
        <script type="text/javascript" src="chem/sgroup.js"></script>
        <script type="text/javascript" src="chem/struct_valence.js"></script>
        <script type="text/javascript" src="chem/dfs.js"></script>
        <script type="text/javascript" src="chem/cis_trans.js"></script>
        <script type="text/javascript" src="chem/stereocenters.js"></script>
        <script type="text/javascript" src="chem/smiles.js"></script>
        <script type="text/javascript" src="rnd/events.js"></script>
        <script type="text/javascript" src="rnd/visel.js"></script>
        <script type="text/javascript" src="rnd/restruct.js"></script>
        <script type="text/javascript" src="rnd/restruct_rendering.js"></script>
        <script type="text/javascript" src="rnd/render.js"></script>
        <script type="text/javascript" src="rnd/editor.js"></script>
        <script type="text/javascript" src="rnd/elem_table.js"></script>
        <script type="text/javascript" src="rnd/rgroup_table.js"></script>
        <script type="text/javascript" src="ui/ui.js"></script>
        <script type="text/javascript" src="ui/actions.js"></script>
        <script type="text/javascript" src="reaxys/reaxys.js"></script>
        <script type="text/javascript" src="ketcher.js"></script>





On Fri, Nov 30, 2012 at 7:54 AM, Otis Rothenberger <osrothen@chemagic.com> 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
otis@chemagic.com
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.
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
TUNE You got it built. Now make it sing. Tune shows you how.



--
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
Jmol-users@lists.sourceforge.net
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
Jmol-users@lists.sourceforge.net
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