First, the method "document.myform.eingabe.value" is better done in modern
browsers using document.getElementById("eingabe").value and then having
<input type="text" id="eingabe">, though I doubt that is the problem. I
think the real problem is that you need
jmolScript
not
jmolscript
A tip: I always look first in the JavaScript console when something like
this doesn't work. It must be telling you "jmolscript" does not exist.
Another tip: You can add
?NOAPPLET
to your page, and Jmol.js will automatically give you a "fake" applet that
just shows you what messages are being sent to the applet. This can be
helpful for debugging just this sort of thing -- you would see in this case
that the problem was not the script itself but rather that no script was
getting to the applet.
Bob Hanson
On 3/16/07, Jochen Ismer <[EMAIL PROTECTED]> wrote:
Hello Everybody,
i want to have a textfield in which the user can type the number of the
amino acid he wants to choose. My code was something like that, but it
doesn't work:
<SCRIPT >
function test() {
var x = document.myform.eingabe.value
jmolscript( 'select x;')
}
</SCRIPT>
<input type="text" name = "eingabe" >
<input type="button" value="select AS"
onClick="test ()">
Thanks for the help
Jochen
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users