Wayne,
One last thought on applet resizing. I agree that it would be good if Jmol could do what the applet at http://pdbbeta.rcsb.org/pdb/explorer/viewers/king.jsp?structureId=101m does.
On the other hand, it IS possible to resize the Jmol applet itself no matter where it is on a page using JavaScript. See:
http://www.stolaf.edu/people/hansonr/jmol/docs/examples/resize.htm
The trick here is to use "show axisangle" to preserve the orientation, then
write a new applet tag into a <span></span> block. Obviously, this serves a
slightly different purpose than resizing an independent applet window, but
in some ways it is more useful than that, because it allows resizing even within a more complex page.
"show axisangle" and "moveto" are in development; the resize.htm page may only work with the version of jmol given at that page (10pre14). I know Miguel is actively working on this.
Bob
Bob Hanson wrote:
ah, ok. That would be cool....
timothy driscoll wrote:
On 2004-10-07 (13:24) Bob Hanson wrote:
Wayne, this is certainly no problem. See for example
http://www.stolaf.edu/depts/chemistry/mo/struc/explore.htm
Click on copper (Cu), then "View All"
That popup window is being written by Javascript, and links on that new window call functions on the "opener" page. Note that JavaScript can even be used to write whole functions ("cloning" itself) if desired into the new window.
From the pop-up window you can click on [big window] to see yet
another pop-up window.
Bob Hanson
hi Bob,
very nice site you have. I think, though, that Wayne wants the ability to dynamically resize the applet by resizing the window (aka the Jmol application). at least, that is what happens at the example URL.
Wayne, this issue came up a few threads ago on the jmol-users list, and unfortunately the answer as I recall was "no, Jmol can't do that."
regards,
tim
-- Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107 Professor of Chemistry, St. Olaf College 1520 St. Olaf Ave., Northfield, MN 55057 mailto:[EMAIL PROTECTED] http://www.stolaf.edu/people/hansonr
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users

