Oh, THAT message....
Hmm. I certainly use Jar files not in the current directory. Oh, I know.
There are two Info parts now:
Info.jarPath
Info.jarFile
just make sure you put the full path into Info.jarPath and a simple file
name in Info.jarFile
On Thu, Sep 20, 2012 at 9:59 PM, Evans, Michael James
<evan...@illinois.edu>wrote:
> Annnd…I think I just answered my own question. The trick's in
> JmolApplet.js:
>
> if(f.indexOf("/") >= 0) {
> alert("This web page URL is requesting that the applet used be " + f + ".
> This is a possible security risk, particularly if the applet is signed,
> because signed applets can read and write files on your local machine or
> network.");
> var ok = prompt("Do you want to use applet " + f + "? ", "yes or no")
> if(ok == "yes") {
> jarPath = f.substring(0, f.lastIndexOf("/"));
> jarFile = f.substring(f.lastIndexOf("/") + 1);
> } else {
> doReport = true;
> }
> } else {
> jarFile = f;
> }
>
> So the jar has to be in the same directory as the page, right? This is
> the only condition in which no '/' would appear in the jarPath. Just
> tested…and yep, that did the trick. Sorry for the disturbance. All clear
> now.
>
> Cheers, Mike
>
> On Sep 20, 2012, at 9:50 PM, "Evans, Michael James" <evan...@illinois.edu
> >
> wrote:
>
> Jmol'ers,
> I've just started playing around with the new JmolAPI.js, etc. setup for
> Jmol 13.0. I really dig most of it; although I was initially intimidated, I
> like the increased modularity and the obvious increase in flexibility it
> provides.
>
> My question is about the alert that appears when using the signed applet.
> When I set isSigned to true in the "Info" object (I call it "jmolOptions")
> and specify JmolAppletSigned.jar as the jarFile, I see an alert along the
> lines of "Do you want to use the signed applet? This could pose a security
> risk…etc." This appears each time the page loads, preventing the user from
> selecting an option along the lines of "Always trust applets from this
> publisher" to prevent further intrusions.
>
> Bob: I know there's a way to get around this, because when I visit your
> example page, I see no warning at all—and you're using the signed applet!
> ;-)
>
> http://chemapps.stolaf.edu/jmol/docs/examples-12/simple2.htm
>
> I know it's probably something simple and stupid…but I have scrutinized
> the example page's code, as well as JmolCore.js and JmolAPI.js to no avail.
> I've tried both inline and $(document).ready() approaches. What am I
> missing?
>
> Cheers, Mike
>
> ------------------------------------------------------------------------------
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
>
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html_______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
>
> ------------------------------------------------------------------------------
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> 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
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users