On Sep 9, 2005, at 11:05 PM, [EMAIL PROTECTED] wrote:

Message: 2
From: "Angel Herraez" <[EMAIL PROTECTED]>
Date: Fri, 09 Sep 2005 10:05:04 +0200
Subject: Re: [Jmol-users] Jmol.js -- jmolinitialize & useSignedApplet

El 8 Sep 2005 a las 14:02, Craig T Martin escribi=F3:

My apologies. This was MY mistake. Going against the rules, I had re-
written one of the Jmol.js routines (added two lines - see below),


Craig,
instead of redefining functions or adding lines to Jmol.js, you can
**repeat** the function and edit it, and add the new lines, in a
separate js file of your own (or write the new lines in the header of
your pages, after calling Jmol.js). Then call this file after calling
Jmol.js. That way, the second definition (yours) of the function will
take precedence over the first but, since you arenot editing Jmol.js,
you will be safe against updates.
(I learnt this trick from Bob Hanson, trying to give better support
for applet in frames)

I actually did something like that, copying the routine to my js file and renaming it. The problem is that when that function is edited in newer versions of Jmol.js (as just happened), my routine is "out of date" and may not play well with others...

So I'll keep doing that (with caution) and await the ability to specify message and pick call backs more cleanly...

Craig



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to