With regard to the signed/unsigned applet issue -- I'm not seeing any issue
there. Here is an example page using the unsigned applets:
http://chemapps.stolaf.edu/jmol/jspecview/jtest2.htm
On Mon, Oct 29, 2012 at 3:38 PM, Robert Hanson <[email protected]> wrote:
> this is fixed -- see files in http://chemapps.stolaf.edu/jmol/jspecview
>
>
> On Fri, Oct 26, 2012 at 10:39 AM, Tim te Beek <[email protected]> wrote:
>
>> Hi all,
>>
>> I'm trying to get JSpecView and Jmol to interact using the new
>> JavaScripts, I'm unable to get jspecView to show and load data.
>>
>> Here's a short summary of what I do:
>>
>> //The required imports:
>> <script type="text/javascript" src="jmol/jquery-1.8.2.min.js"></script>
>> <script type="text/javascript" src="jmol/JmolCore.js"></script>
>> <script type="text/javascript" src="jmol/JmolApplet.js"></script>
>> <script type="text/javascript" src="jmol/JmolControls.js"></script>
>> <script type="text/javascript" src="jmol/JmolApi.js"></script>
>> <script type="text/javascript" src="jmol/JmolJSV.js"></script>
>>
>> //init Jmol
>> var jmolInfo = {width : 370, height : 370 };
>> var jmol = Jmol.getApplet('jmol', jmolInfo);
>> Jmol.script(jmol, 'load DATA \'inline\'\n ... snipped ... \nEND
>> \'inline\'');
>>
>> //init JspecView
>> var jspecInfo = {width : 370, height : 370, jarPath : 'jmol', jarFile :
>> 'JSpecViewApplet.jar', };
>> var jspec = Jmol.getJSVApplet('jspec', jspecInfo);
>> Jmol.jsvLoadInline(jspec, 'DATA \'inline\'\n ... snipped ... \nEND
>> \'inline\'');
>>
>> This last line fails because jspec._applet is null, meaning the call to
>> loadInLine in JmolJSV.js#219 fails with Error calling method on NPObject.
>>
>> Can anyone point me to the correct way to load both Jmol and JspecView
>> and have them interact?
>>
>> Best,
>> Tim
>>
>>
>>
>> ------------------------------------------------------------------------------
>> The Windows 8 Center
>> In partnership with Sourceforge
>> Your idea - your app - 30 days. Get started!
>> http://windows8center.sourceforge.net/
>> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
>> _______________________________________________
>> 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
>
>
>
--
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
------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users