Gusts—this is *awesome*. I have forked your GitHub repository and intend to
integrate the plugin into my Jmol web app:
http://www.metallacycle.com/uiji/
Jmol.js includes not just functions for building Jmol applets, but also
buttons, checkboxes, etc. linked up to a Jmol applet on the page. Perhaps
the plugin could implement these functions in some way, as in...
$('#jmolButton').jmolButton();
I would also be interested in setting Jmol parameters thusly:
$('#Jmolapplet').jmol({ parameter: 'bondmodeor', value: true });
In my fork, I've added a parameters object to _defaults that contains all
the Jmol parameters as of 12.2.10; you might find that a useful reference.
I also added a simple bit of code to _proc that allows one to set Jmol
parameters using the above syntax.
https://github.com/mevans86/jMol
Cheers, Mike
---
Mike Evans
Organic Chemistry Graduate Student, Moore Group
University of Illinois, Urbana-Champaign
On Tue, Jul 10, 2012 at 10:47 AM, Gusts Kaksis <gusts.kak...@gmail.com>wrote:
> Hello!
>
> I would like to propose a completely standalone jQuery plugin for Jmol.
> I searched the web and found only one solution that works as a wrapper
> for Jmol.js, so I took my time and wrote this alpha version, which does
> not use Jmol.js at all. I've hosted it on GitHub:
> https://github.com/gusc/jMol
>
> A brief history. My father is a Ph.D in bio chemistry, and he's still
> using Chime plugins for old Firefox (well he even used to use Netscape
> some 2 years ago), but the times are changing, and it's getting harder
> for him to show his students how to get that old software running on new
> PCs or even Macs. So I set up to help him out. Being a web developer for
> almost 10 years now and also having a masters degree in physical
> chemistry, although after graduation my work has mostly been
> concentrated on software and web development, there's still a small part
> of me that's been fascinated about the work on Jmol. First of all it's
> cross platform, with all the scripting possibilities and it's kind of
> easy to use in a web environment.
>
> And so there was this "kind of easy to use" part in me, that made me
> create this jQuery plugin, because you know, it's a professional
> cretinism thing. :) It's a new era in web development (for about 6 years
> now), and it was really like, throwing me back a few years, when I found
> out that I have to use inline scripting. But don't get offended guys,
> you've done great job, so that's why I would love to share with you this
> prototype of jMol (mind the small j :)) which could be a complete
> replacement of Jmol.js.
>
> I've currently tested it on (and it works with some small quirks):
> Google Chrome on Windows - works
> Firefox 12.0 on Windows - works
> Firefox 13.0.1 on Windows - started up, but displayed status message
> "Jmol script terminated"
> Internet Explorer 8.0 - works
> Safari 5.1.7 on Mac - works
> Safari 5.1.4 on Windows - could not load Java at all (as in plug-in not
> found)
> Opera 11.61 on Windows - started up, but could not execute scripts as a
> script method was not found on an object (might be something with a HTML
> object tag formatting on Opera)
>
> And if we are still on a subject, where can I find some documentation on
> external methods, that can be accessed through JavaScript? I've looked
> though Jmol site for 2 days straight, but it's all about scripting
> options and Jmol.js, except for a applet.script() method. I looked in to
> SVN, but all I could find was this undocumented applet source (which as
> much as I understood is the front-end of an applet, isn't it?):
>
> http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol/src/JmolApplet.java?revision=16759&view=markup
>
> Sincerely Yours,
> Gusts Kaksis
> http://gusc.lv/
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers