Bob, Angel
which function is going to be  

function myfunc(appId,b,c,d) {
 alert([appId,  b, c, d])

}
I cannot find any explanation on 
http://chemapps.stolaf.edu/jmol/docs/index.htm?ver=11.10&search=callback#setcallback
 . 

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
-----------------------------------------------------------
________________________________________
From: P.Canepa [[email protected]]
Sent: Friday, March 26, 2010 2:36 PM
To: [email protected]
Subject: Re: [Jmol-users] problem filling an html list

Bob,
can you give me the INTERNET url not your local?
file:///C:/jmol-dev/workspace/Jmol-documentation/script_documentation/index.htm?ver=11.10&search=callback#setcallback

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
-----------------------------------------------------------
________________________________________
From: Robert Hanson [[email protected]]
Sent: Wednesday, March 24, 2010 11:26 AM
To: [email protected]
Subject: Re: [Jmol-users] problem filling an html list

in Jmol:

set loadStructCallback "myfunc"


on the page:

function myfunc(appId,b,c,d) {
 alert([appId,  b, c, d])

}

I don't recall the exact parameters now. See

file:///C:/jmol-dev/workspace/Jmol-documentation/script_documentation/index.htm?ver=11.10&search=callback#setcallback


On Wed, Mar 24, 2010 at 6:12 AM, P.Canepa 
<[email protected]<mailto:[email protected]>> wrote:
Exactly that's what I am doing, i am using the div as you said ....!
how does set loadStructCallback work ?

Thanks
--
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]<mailto:[email protected]>
mobile: +44 (0) 7772-9756456
-----------------------------------------------------------
________________________________________
From: Robert Hanson [[email protected]<mailto:[email protected]>]
Sent: Wednesday, March 24, 2010 11:04 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: [Jmol-users] problem filling an html list

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]<mailto:[email protected]><mailto:[email protected]<mailto:[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]<mailto:[email protected]><mailto:[email protected]<mailto:[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]<mailto:[email protected]><mailto:[email protected]<mailto:[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]<mailto:[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

------------------------------------------------------------------------------
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