Piero, Mostly, alerts serve to stop the flow of javascript and whatever message you put in them just tells you that the flow is there.
I'm afraid I cannot offer any clear hitn as to what is happening precisely in your case. On the other hand, if your only purpose for defining a messagecallback is what you have shown, I would try something simpler like jmolApplet(["520","440"], 'script "scripts/reset.spt"; set loadStructCallback "plotEnergies"; javascript "loadModels()"; '); (but I'm just guessing) ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers