The way you do this is create a <div> there but do not populate it until
after the page is loaded and the file has been read. Then, in the jmolApplet
load script give the javaScript command to tell your web page that it is
time to populate the div. That uses
document.getElementById("somedivid").innerHTML = "....". Or you could set
loadStructCallback to a function on your page that will do the updating
after files are loaded. That might be better.

Bob

On Tue, Mar 23, 2010 at 12:05 PM, P.Canepa <[email protected]> wrote:

> Dear All
>
> I have a javascript function LoadModels() which should load the models in
> an external HTML list ! How can I let the list be populated when I load the
> page?
> This would  have to happen just after the jmolApplet(["520","520"] has been
> called!
>
> I can make it to work   if I do as below
>
> <script type="text/javascript"  >
>
>  jmolInitialize(".","jmol/JmolAppletSigned0.jar");
>                                jmolApplet(["520","520"], " script
> scripts/reset.spt;  background white" );
>                                LoadModels();
>                        </script>
>
> Thanks Piero
>
> --
> Pieremanuele Canepa
> Room 104
> Functional Material Group
> School of Physical Sciences, Ingram Building,
> University of Kent, Canterbury, Kent,
> CT2 7NH
> United Kingdom
>
> e-mail: [email protected]
> mobile: +44 (0) 7772-9756456
> -----------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> 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
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to