Hi guys,
Angel, thank you for your quick response,
now we'll try to ask the developers,
so it goes like this,
now, we've written this code:
<script type="text/javascript">
jmolInitialize("JmolFolder/");
jmolApplet(400);
jmolHtml("<input TYPE=BUTTON value = 'C3H4' name = 'jmolButton0'
OnClick='addButtons()'> ");
jmolHtml("</input>");
function addButtons()
{
jmolButton("MMMMMMM")
}
</script>
which has jmol applet and button C3H4, and function that suppose to create
MMMMM button when C3H4 button is pressed.
the questions are:
1. when pressing C3H4 button, the MMMMMMM button is created in new HTML
page,
how can we make it appear on the same page where the C3H4 button is?
2. before the jmolHtml we've created jmolButton("load JmolFolder/C3H4.mol;
draw jmolButton(jjj)", "C3H4");
but inside jmolHtml it does not recognize it, and just create another new
button called C3H4,
how can we make it recognize the jmolButton that was created before?
Thank you!
Yael and Ira.
---------- Forwarded message ----------
From: I B <[email protected]>
Date: Fri, Jun 5, 2009 at 11:15 PM
Subject: Fwd: question about Jmol applet
To: yael levi <[email protected]>
---------- Forwarded message ----------
From: Angel Herráez <[email protected]>
Date: 2009/6/5
Subject: Re: question about Jmol applet
To: I B <[email protected]>
Dear Ira and Yael,
First of all, I have no practice in programming Java, so I'm not sure if I
can help. If you need
programming advice, you'd better write to the jmol-developers email list.
> we've created the jmol applet and buttons showing different molecules in
it,
Do you mean buttons inside the applet, or buttons in the web page that
embeds the aplet?
> we cannot manage to find how to catch the "press jmolButton" event from
the applet so we can
> create other buttons on Html page on "press" event.
That will depend on what and where is the jmolButton. Please be more
specific.
I look forward to more details.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hello Angel,
We're students trying to work with jmol to create an applet for chemistry
symmetry,
we've created the jmol applet and buttons showing different molecules in it,
we cannot manage to find how to catch the "press jmolButton" event from the
applet so we can create other buttons on Html page on "press" event.
Do you have any idea how to do this?
Please help us if you can,
Thanks,
Ira and Yael.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers