make sure that also you then set the size of the applet from the size of the
div, using
<div id="JmolDiv" style="height:250px;width=250px">
<script type="text/javascript">jmolApplet(["100%","100%"],
someScript)</script>
</div>
because otherwise I think even if the div changes size, the applet won't.
You can go to a fraction of a pixel -- 0.01px, for example, and that should
still work and not even show one pixel.
Bob
2009/10/31 Angel Herráez <[email protected]>
> Hello, Manu
>
> Depending on the way you hide your applet (e.g using CSS style
> display:none) and the
> browser you use, the applet object is destroyed and has to be regenerated
> later when you
> unhide it. That might be the cause for your trouble, as there might a
> timing conflict between
> the scripted action and the applet being reinitialized.
>
> Try hiding the applet with CSS style height:1px;width:1px
>
>
> On 31 Oct 2009 at 19:56, [email protected] wrote:
>
> > Hi All,
> > i've a problem i was not able to find the solution in the mailing list.
> > I'm using JMol Applet in a (div)block that i'm able to hide or not.
> > Each time i unhide the applet, i've to run twice jmolscript function
> > to be able to see my structure. Certainly a question of initialization
> > of the applet (something like that huh ?)
> > Is there a way to correct this problem ?
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
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
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users