I've put up a proposed change to Jmol.js. Please check it out. The idea is
that we would be able to test sites using different Jar files. The comment
in the Jar file reads:
// Note added 12:41 PM 9/21/2008 by Bob Hanson, [EMAIL PROTECTED]:
// JMOLJAR=xxxxx.jar on the URL for this page will override
// the JAR file specified in the jmolInitialize() call.
// The idea is that it can be very useful to test a web page with different
JAR files
// Or for an expert user to substitute a signed applet for an unsigned one
// so as to use a broader range of models or to create JPEG files, for
example.
// If the JAR file is not in the current directory (has any sort of "/" in
its name)
// then the user is presented with a warning and asked whether it is OK to
change Jar files.
// The default action, if the user just presses "OK" is to NOT allow the
change.
// The user must type the word "yes" in the prompt box for the change to be
approved.
// If you don't want people to be able to switch in their own JAR file on
your page,
// simply set this next line to read "var allowJMOLJAR = false".
You can try it out using URLs such as these:
http://chemapps.stolaf.edu/jmol/docs/examples-11/new.htm?JMOLJAR=./JmolApplet.jar
http://chemapps.stolaf.edu/jmol/docs/examples-11/new.htm?JMOLJAR=./JmolAppletSigned.jar
Bob
On Mon, Sep 1, 2008 at 10:03 AM, Robert Hanson <[EMAIL PROTECTED]> wrote:
> OK. Others have comments on this?
>
> Bob
>
>
>
> On Mon, Sep 1, 2008 at 9:58 AM, Rolf Huehne <[EMAIL PROTECTED]>wrote:
>
>> Robert Hanson wrote:
>> > One more thought on this: What about an option that allows the
>> replacement
>> > of the Jar file but first prompts the user for an OK (using JavaScript
>> > prompt() ) and explains why this might be an issue? If the user says it
>> is
>> > OK, then the Jar file is used?
>> >
>>
>> Accepting should not be the default and then I think it should be ok.
>>
>> If it is integrated the possible consequences should be pointed out
>> clearly in the documentation of 'Jmol.js'. And it should be easily
>> removable by people who don't like to take the risk.
>>
>> Regards,
>> Rolf
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>
>
>
> --
> Robert M. Hanson
> Professor of Chemistry
> 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
Professor of Chemistry
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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users