Well, yes and no. The problem is not yet solved. I am looking at the following javascript which is an adaptation of one sent by Jaime. It does not work. If fact it stops everything. If I put an alert in the first line of newProblem() I never see it. I am better off with nothing and just using the new problem button. That works, but it's the "beat the machine" challenge!!


function waituntilok() {

// a message to inform the user of what is happening
        document.getElementById("open").innerHTML = "Applets are Loading";

//now check the two applets to see that they are active, and if they are launch the new problem function.
if (document.jMolA.isActive()) {
if (document.jMolB.isActive()){
newProblem();
}
}


// maybe B is loaded first

 if (document.jMolB.isActive()) {
                if (document.jMolA.isActive()){
                newProblem();
                }
                 }

 // both are not loaded yet so wait a bit and check again
       settimeout('waituntilok();', 1500));

   }


Phil

On Sep 13, 2004, at 1:07 PM, Miguel wrote:

I have now had a chane to look at this on both a PC and a Mac.  We are
dealing with a platform issue I think at this point.   Your hack works
fine on the PC, but not on my Mac.  I will continue to look at where
the problem lies and then hack another piece of code.

Phil,

Was the link that Jaime suggested of any help?


Miguel



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users




J. Philip Bays
Department of Chemistry and Physics
Saint Mary's College
Notre Dame   IN  46556
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to