Jeff, it looks as if there would be some kind of timing problem. With the version I got from your URL it sometimes works with Firefox 2.0.0.16 on Linux and sometimes not.
=============================== function appletReady() { var _dataInfo = jmolGetPropertyAsArray("auxiliaryInfo"); var _jmolText = document.getElementById('jmolText'); _jmolText.value = dump(_dataInfo); } =============================== I am wondering if you shouldn't define your textarea 'jmolText' before calling 'jmolApplet'? Regards, Rolf Jeff Hansen wrote: > Dean, > > Yeah, I thought of that and tried it, but that didn't work either. In > that case Firebug reports that getElementById is not defined. So it > seems for some reason Firefox isn't recognizing the textarea's id. > Incidentally, I get a similar error when I try the same with the textDiv > div instead. > > > Jeff > > > *********************************************** > Jeff Hansen > Department of Chemistry and Biochemistry > DePauw University > 602 S. College Ave. > Greencastle, IN 46135 > [EMAIL PROTECTED] > *********************************************** > > > On Aug 27, 2008, at 11:19 AM, Dean Johnston wrote: > >> Jeff, >> >> No apologies needed. Giving an id to a <div> does not create a >> Javascript object automatically (at least in Firefox). You will have >> to use something like: >> >> var myText = document.getElementById('jmolText'); >> >> and then say >> >> myText.value = dump(_dataInfo); >> >> It's interesting that it does work in Safari. >> >> Dean >> >> >> On Wed, Aug 27, 2008 at 11:05 AM, Jeff Hansen <[EMAIL PROTECTED]> wrote: >> My apologies. This is really more of a javascript/html question but >> it is on a Jmol project I am working on. Could someone explain to me >> what is the problem with the following code? The appletReady() >> function works just fine in Safari and the page validates as HTML 4.01 >> strict, but the appletReady() function doesn't work in Firefox. >> Firebug reports an error and says jmolText is not defined. >> >> function appletReady() { >> var _dataInfo = jmolGetPropertyAsArray("auxiliaryInfo"); >> jmolText.value = dump(_dataInfo); >> } >> >> ... >> >> <div id="textDiv"> >> <form action=""> >> <p><textarea cols="50" rows="50" id='jmolText'></textarea></p> >> </form> >> </div> >> >> >> The page is at http://web.mac.com/jhansen4/Jmol/NewJmolDiv.html if >> that will help. ------------------------------------------------------------------------- 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