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.
>
>
> ***********************************************
> Jeff Hansen
> Department of Chemistry and Biochemistry
> DePauw University
> 602 S. College Ave.
> Greencastle, IN 46135
> [EMAIL PROTECTED]
> ***********************************************
>
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users