Angel, can you help Aya?
---------- Forwarded message ----------
From: Aya <[email protected]>
Date: Sat, Mar 21, 2009 at 7:05 PM
Subject: Re: Jmol Assistance
To: Robert Hanson <[email protected]>
Professor Hanson,
Thank you for the recommendation. Unfortunately, I am still stuck on where
to call my functions. I have a simple rotate function in the header of the
html layout (in javascript), and I have tried incorporating calling the
functions into a button or menu option, and neither will yield any results.
A sample of my code is shown below.
Your assistance is immensely appreciated!
Aya
<html>
<head>
<script src="Jmol.js" type="text/javascript" >
function rotateModel
rotate {atomno=1} {atomno=2} 90
end function
</script>
</head>
<body>
<script type="text/javascript">
jmolHtml("RadioGroup Sample: ");
jmolRadioGroup([
["rotateModel", "Rotate"]
]);
jmolBr();
jmolHtml("Menu Sample: ");
jmolMenu([
["rotateModel", "Rotate"]
]);
jmolBr();
jmolHtml("Button Sample: ");
jmolButton("rotateModel","RotateButton");
</script>
<script type="text/javascript">
jmolApplet(290,"load models/practice.pdb;select all;spacefill
25%;wireframe .15;color cpk;zoom 120",0)
</script>
</body></html>
Hello Professor,
I am working on something of a webpage project, where I must utilize a java
applet, Jmol, in an html page. I don't know if this is a lack of knowledge
in html, java, or jmol (most likely all three) that is hindering me from
being productive, but I am having a hard time finding where to place the
java functions and the code that references them relative to the html
formatting. Any suggestions?
Thank you,
Aya
No matter where I put my function, if I try calling it in the same script
When I put the functions in the same
On Sat, Feb 21, 2009 at 11:46 PM, Robert UHanson <[email protected]>wrote:
> I would use pickcallback, not hovercallback. Check out how this works at
> http://chemapps.stolaf.edu/jmol/docs/examples-11/new.htm
>
>
>
> On Sat, Feb 21, 2009 at 4:48 PM, Aya <[email protected]> wrote:
>
>> Hello,
>> I really appreciate your interactive Jmol site, as I am working on a
>> webpage applet for a research project. I need to alter the labels so that
>> they include links, so I will probably need to utilize a script to execute
>> this for different atoms or sets of atoms. I am, however, having a
>> difficult time with the set HoverCallback function and the uses of it. Do
>> you think you could include an example, or point me in the right direction
>> as to where I can find one?
>> Thank you!
>>
>> Aya Eid
>> Working with PhD Joseph Orgel: http://lunar.iit.edu/
>> Illinois Institute of Technology
>> B.S. Candidate
>> Biomedical Engineering - Medical Imaging
>> Electrical Engineering
>>
>
>
>
> --
> Robert M. Hanson
> Professor of Chemistry
> St. Olaf College
> 1520 St. Olaf Ave.
> Northfield, MN 55057
> http://www.stolaf.edu/people/hansonr
> phone: 507-786-3107
>
>
> If nature does not answer first what we want,
> it is better to take what answer we get.
>
> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users